Archive: Did anybody a example for a install / update function?


Did anybody a example for a install / update function?
Hi,

I hope you can help me. I ask for a week, how can I implement a update function. At the moment I understand that I must use a custom page.

But, what can I do with the Mui_page_Directory page. Is it right, that I must build the page again as custom page, that I can hide the Directory page if I inside the update mode?

Please, has anybody a install / update example for me? I think I´m not the first who have a problem like that.

The install pages looking like that:

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${SCRIPTHOME}\License.txt"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

I look in the registry, if the tool already installed. If it, i would like to show following pages:

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "${SCRIPTHOME}\License.txt"

custom page, or the directory page with disabled path-textfield, or perhaps enybody has a better idea?

!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

I hope you can help me!

Thanks for your help!

Stefan


You can skip all pages, not only custom pages. To skip a normal page, simply call Abort in its pre function. See the FAQ item for more information.