Shortcut based on property value
I would like to know if there is any way to copy a shortcut based on the value of a property. Let's say that the value of the property "PC_Type" is "1", then I'd like to copy "Shortcut 1" to the desktop, and so on... I know I could do it with VBscript but I would prefer to use a Wise / MSI functionality so that the uninstall would be easier.
I'm using Wise Package Studio 6.
Thank you.
Syl
I'm using Wise Package Studio 6.
Thank you.
Syl
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
zipsantro
16 years ago
Posted by:
sylvain_langlois
16 years ago
Posted by:
sylvain_langlois
16 years ago
I have another problem now. What I'm trying to do is if the application is already installed and another property is set during a repair, I would like to change de shortcuts.
So, if the application was installed using the command line "MSIEXEC.EXE /I "package.msi" PCTYPE=1 /QB!" and the repair command is "MSIEXEC.EXE /I "package.msi" PCTYPE=2 /QB!", I would like to change the shortcuts so that it reflects pctype 2. When I do it manually without the QB, the repair works fine and the shortcuts are changed. But using the command line without user interface, the old shortcuts are still there and the new ones are not copied.
I tried using REINSTALL="ALL". It works fine for the repair, but if the package is not already installed well, it won't install. I would prefer to keep one set of batch files with only one command line that would do both install and repair instead of two batch files for each pc type(one for the installation and one for the repair).
Thanks...
So, if the application was installed using the command line "MSIEXEC.EXE /I "package.msi" PCTYPE=1 /QB!" and the repair command is "MSIEXEC.EXE /I "package.msi" PCTYPE=2 /QB!", I would like to change the shortcuts so that it reflects pctype 2. When I do it manually without the QB, the repair works fine and the shortcuts are changed. But using the command line without user interface, the old shortcuts are still there and the new ones are not copied.
I tried using REINSTALL="ALL". It works fine for the repair, but if the package is not already installed well, it won't install. I would prefer to keep one set of batch files with only one command line that would do both install and repair instead of two batch files for each pc type(one for the installation and one for the repair).
Thanks...
Posted by:
sylvain_langlois
16 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.