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
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
condition the installing component
Answered 09/24/2008 by: kiptek
Second Degree Green Belt

Please log in to comment
0
with PCTYPE=1
Answered 09/24/2008 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
0
Move the shortcut to a new component (only to hold the shortcut) and put condition as PC_TYPE = 1 for the component. You might get couple of ICE Errors as the advertised shortcut component doesn't have any HKCU registry as Key-Path.
Answered 09/24/2008 by: zipsantro
Purple Belt

Please log in to comment
0
Thanks to all, it worked great. I never had to use this function before...
Answered 09/25/2008 by: sylvain_langlois
Orange Belt

Please log in to comment
0
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...
Answered 09/25/2008 by: sylvain_langlois
Orange Belt

Please log in to comment
0
Well, I solved my problem. I added a custom action that checks if the product is installed. If it is, it sets the reinstall property to "all" and reinstalls the shortcuts.
Answered 09/26/2008 by: sylvain_langlois
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity