This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Uninstalling with /x misses variables
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 24, 2008
03:19 AM
Uninstalling with /x misses variables
Hi guys,
I use InstallShield 2008 Premiere to deploy my application, using Basic MSI installer. I have some custom actions, and a set data for each one: set
Session.Property("CustomActionData") and split it to get the desired values.
Using msiexec /i {GUID} works, but the problem is, that when I uninstall using /x switch, those variables are not properly set, they are empty. Is there any reason why this happens? This action is right before InstallFinalize in the execution sequence (that may be the problem?).
Best regards,
Daniell
I use InstallShield 2008 Premiere to deploy my application, using Basic MSI installer. I have some custom actions, and a set data for each one: set
Session.Property("CustomActionData") and split it to get the desired values.
Using msiexec /i {GUID} works, but the problem is, that when I uninstall using /x switch, those variables are not properly set, they are empty. Is there any reason why this happens? This action is right before InstallFinalize in the execution sequence (that may be the problem?).
Best regards,
Daniell
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 24, 2008
04:13 AM
Just noticed that not all variables are missing, but INSTALLDIR sure does.
This is very interesting, because when uninstall ends, I can see in the log that INSTALLDIR has the right value:
Property(C): INSTALLDIR="C:\Program Files\SoftwareName"
So, then, why it was empty in my CA .. ?
Any idea?
Thanks
This is very interesting, because when uninstall ends, I can see in the log that INSTALLDIR has the right value:
Property(C): INSTALLDIR="C:\Program Files\SoftwareName"
So, then, why it was empty in my CA .. ?
Any idea?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 24, 2008
08:59 AM
Ok, I've managed to access the variables by changing InScriptExecution to ImmediateExecution, using Session.Property("INSTALLDIR"), moving the action after InstallFinalize and it works. (the CA is a script that executes some shell commands as some final cleanup, so should be ok)
Now a question: Why I can't use dialogs when uninstalling with /x switch? I have a dialog with the set condition "Installed" and it does not appear when uninstalling ..
Regards,
Daniel
Now a question: Why I can't use dialogs when uninstalling with /x switch? I have a dialog with the set condition "Installed" and it does not appear when uninstalling ..
Regards,
Daniel
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 24, 2008
09:02 AM
I believe that running with /X is equivalent to running /i /qb which never shows the UI, it only runs the Execute sequence.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 24, 2008
09:17 AM
Hi DLee, thanks for the answer.
Does VBScript have something like a message box with 2/3 buttons so I can simulate a dialog? I only need the user to choose an option so I can se a variable. Or maybe is there a full featured dialog in a custom action dll ?
Regards,
Daniel
Does VBScript have something like a message box with 2/3 buttons so I can simulate a dialog? I only need the user to choose an option so I can se a variable. Or maybe is there a full featured dialog in a custom action dll ?
Regards,
Daniel
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 25, 2008
12:16 AM
VB Script has the dialog you prefer. Check for Vb Script MsgBox functions.