How do I control the sequence of events?
Posted: Thu Feb 23, 2006 1:29 pm
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
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