Saving variables to use with uninstall.
Saving variables to use with uninstall.
Is there a possibility to save variables (maybe in the msi file) so I can use them within the uninstall dialogs?
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Hi Treoxx!
This capability is not currently available - variables that you need must be saved either in the registry, or in text files, or in some other way you would like to reuse them.
However this was a top feature request, so I am happy to say our development team has added a new "Persist" option to the Set Variable command, which, when checked, automatically saves variable values.
This will be available in an update coming soon!
This capability is not currently available - variables that you need must be saved either in the registry, or in text files, or in some other way you would like to reuse them.
However this was a top feature request, so I am happy to say our development team has added a new "Persist" option to the Set Variable command, which, when checked, automatically saves variable values.
This will be available in an update coming soon!
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
OK Michael thanks!.
Then the next thing:
When I request the variable $TARGETDIR$ in the maintenance dialog I get the following answer:
"C:\\Program files\\$NAMEOFAVARIABLE$"
That was not what I expected.
(Yes I've changed the variable $title$ in the Target Folder by Project Properties.)
Where can I find the right dir from the installed program.
Then the next thing:
When I request the variable $TARGETDIR$ in the maintenance dialog I get the following answer:
"C:\\Program files\\$NAMEOFAVARIABLE$"
That was not what I expected.
(Yes I've changed the variable $title$ in the Target Folder by Project Properties.)
Where can I find the right dir from the installed program.
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
TARGETDIR is preserved automatically but I guess setting it to another variable causes this issue.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
What happens when you print out the variable with a MessageBox?
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
That can only mean that $VAR$ is not defined the second time round. Make sure your script execution path always defines it.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
I would step through the code line by line in the debugger in maintenance mode to see what is going wrong.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
If I change $TIME$ in another variable lets say $SERVICENAME$
(In project properties, targetdir)
The value of $SERVICENAME$ is 12345
Because I'm making an installer for multiple instances the user has to choose the title for the software. This is written in $SERVICENAME$
The user changes it to 54321.
He finished the installation, and goes to uninstallation..
Messagebox with $TARGETDIR$ "C\\programfiles\\\"
Well.... I give up
will wait at the option for variables for install and maintenance, I really need it, not only for the targetdir.
(In project properties, targetdir)
The value of $SERVICENAME$ is 12345
Because I'm making an installer for multiple instances the user has to choose the title for the software. This is written in $SERVICENAME$
The user changes it to 54321.
He finished the installation, and goes to uninstallation..
Messagebox with $TARGETDIR$ "C\\programfiles\\\"
Well.... I give up

Who is online
Users browsing this forum: No registered users and 136 guests