/build/static/layout/Breadcrumb_cap_w.png

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

0 Comments   [ + ] Show comments

Answers (6)

Posted by: kiptek 15 years ago
Second Degree Green Belt
0
condition the installing component
Posted by: jmcfadyen 15 years ago
5th Degree Black Belt
0
with PCTYPE=1
Posted by: zipsantro 15 years ago
Purple Belt
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.
Posted by: sylvain_langlois 15 years ago
Orange Belt
0
Thanks to all, it worked great. I never had to use this function before...
Posted by: sylvain_langlois 15 years ago
Orange Belt
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...
Posted by: sylvain_langlois 15 years ago
Orange Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ