Page 1 of 1

How do I control the sequence of events?

Posted: Thu Feb 23, 2006 1:29 pm
by shomw
Hi;
Thanks for all the help in the past.

I have 2 questions:

1. when the variable NEEDSUPGRADE equals true I call a script on the line before Install/Remove MSI... that script has two commands, first it has a Read Registry HKLM\\SOFTWAREJ\\MY CORP\\MY APP\\Setting into SettingBackup
then it has a Edit INI File c:\\windows\\temp.ini, [MY APP] Setting=$SettingBackup$

then when I do the install when NEEDSUPGRADE equals true I read the setting from the temp.ini and add it to the registry. however it seems that the ini file is only getting written after the registry settings are set and therefore the settings in the reg after the install is done do not match the backed up settings. How do I make sure that the ini is written before the install of the new version begins?

2. what command can be used from the command line to do a silent uninstall?

many thanks in advance.
Shom

Posted: Thu Feb 23, 2006 5:19 pm
by MichaelNesmith
Hi Shom!

The answers to your questions are in the help file, with plenty of details:

1) "Setup Commands Preceding Apply Uninstall", section "The Install - Uninstall Cycle"

2) "Uninstalling from the Command Line", "Setup Command Line Parameters"