Migrating from Installscript to Basic MSI
Posted 18 June 2007 - 20:54
I have been experimenting with a basic msi project and found their rollback and built in service features very interesting, and a possible fix to the crashing installer leaving our service off, but I haven't been able to figure out a clean way to migrate from installscript to msi. Ideally our service needs to be able to download the new msi. Then the msi needs to remove the installscript install and install itself.
I currently have both the old installscript, and a replacement msi built, but when I run the msi when the installscript is already installed as expected I get two instances of my product in add/remove programs.
Any advice would be greatly appreciated.
Thanks
Phil
Posted 27 June 2007 - 13:56
However, you can reuse some of your (complex) installscript code within custom actions(test on exit code!).
Success!!!
Posted 27 June 2007 - 14:43
Stefan Krüger
InstallSite.org twitter facebook
Posted 27 June 2007 - 15:07
Thanks
Phil
Posted 27 June 2007 - 15:09
Like to use them the most.
Posted 27 June 2007 - 15:16
Stefan Krüger
InstallSite.org twitter facebook
Posted 27 June 2007 - 15:18
This installer has to run and do its work in a totally unattended fashion. I was just fishing for advice on what other people have used. While I test the different options.
Posted 12 July 2007 - 13:18
QUOTE (Stefan Krueger @ 2007-06-27 15:16) |
Actually I think you would call the InstallScript setup's setup.exe to uninstall so in this case the custom action type would be EXE. |
How exactly is this done? And were in the sequence should i put the call?
Regards F
Edited by fredrik.strom, 12 July 2007 - 13:25.
Posted 13 July 2007 - 13:23
Stefan Krüger
InstallSite.org twitter facebook
Posted 16 July 2007 - 09:06
Can i use a property as an argument to an CustomAction for the
Filename&CommandLine argument?
I have the uninstall path and arguments in the registry and have found it using a system search...
The registry entry looks like
C:\WINDOWS\ISUNINST.EXE -a -f"C:\Program Files\My Prodduct\Uninst.isu" -c"C:\Program Files\Common Files\My Shared\biaunst.dll"
But only C:\WINDOWS\ISUNINST.EXE is retrieved from the system search into the defined property. Is this a known behaviour?
Edited by fredrik.strom, 16 July 2007 - 09:20.
Posted 16 July 2007 - 09:31
QUOTE |
Can i use a property as an argument to an CustomAction for the Filename&CommandLine argument? |
Yes, custom action type 50. But you will need to split the command line parameters from the exe.
QUOTE |
But only C:\WINDOWS\ISUNINST.EXE is retrieved from the system search into the defined property. Is this a known behaviour? |
No. Did you select "raw" as type of registry data?
Stefan Krüger
InstallSite.org twitter facebook
Posted 16 July 2007 - 10:12
I think i was using "filepath as specified by a registy entry", when i changed to just "registry entry" i get the data.
Regards F
Edited by fredrik.strom, 16 July 2007 - 11:42.
Posted 16 July 2007 - 11:43
Posted 16 July 2007 - 11:46
Stefan Krüger
InstallSite.org twitter facebook
Posted 16 July 2007 - 12:38
Is it a bad idea to put Custom Actions in the UI sequence?
/F
Edited by fredrik.strom, 16 July 2007 - 13:23.
Posted 18 July 2007 - 17:43
This KB article may also be useful:
INFO: What Command Line Parameters Are Available for IsUninst.exe?
QUOTE |
Is it a bad idea to put Custom Actions in the UI sequence? |
Stefan Krüger
InstallSite.org twitter facebook