PDA

View Full Version : Remove installer at runtime?


NewsArchive
03-05-2005, 05:27 AM
[Friday, March 04, 2005 4:46 PM]

Friedrich,

Is it possible to do a dialog asking the user whether he wants to delete the
installation program after a successful installation? I see that that can
be set on the advanced General Information tab, but not how to determine
this at runtime.

Jane

NewsArchive
03-05-2005, 05:27 AM
[Friday, March 04, 2005 5:09 PM]

Jane,

Good point. This is not possible at the moment but I'll add an option to
give you access to this flag.

Thanks,
Friedrich

--
Friedrich Linder
www.lindersoft.com
Fax: 1.954.252.3910

NewsArchive
03-05-2005, 05:27 AM
[Friday, March 04, 2005 5:23 PM]

Thanks, Friedrich.
I could kludge it with a batch file... but that would be more elegant ;-)
Jane

NewsArchive
03-05-2005, 05:28 AM
[Friday, March 04, 2005 5:52 PM]

Jane,

:)

Feature added. We can now write "installer flags".

For example, the following is already possible in build #1063. The user
executed the installer in silent mode (e.g. setup.exe /S)

If %_SB_INSTALLERFLAG% Equals "1" on Position "$SB_SILENTMODEFLAG$" Then
Message Box "This demo cannot be run in silent mode!" -- "Silent Mode"
Exit Installation
End

We can now "overwrite" these settings.

Set InstallerFlag ($SB_SILENTMODEFLAG$) = 0

This gives us again more power and flexibility. For example, the installer
replaced in-use files and (automatically) asks to reboot the machine at the
end of the installation process. We can now "overwrite" this and add our
own reboot routine, etc.

If %_SB_INSTALLERFLAG% Equals "1" on Position "$SB_RESTARTFLAG$" Then
Message Box "Please reboot next year yadayada" -- "Reboot"

Set InstallerFlag ($SB_RESTARTFLAG$) = 0
End

Thanks,
Friedrich

--
Friedrich Linder
www.lindersoft.com
Fax: 1.954.252.3910

NewsArchive
03-05-2005, 05:28 AM
[Friday, March 04, 2005 6:59 PM]

Ahh yesss..... yet again proving that you da man :)

Jane