MSI Shortcut
Hi all,
i have a lot of MSI packages, which I deploy trough GPO, some of them I deploy to users.
I've deleted all the shortcuts the package actually makes with Orca untill now.
That's because when a user logs on shortcuts from a server locations will be copied to the Start Menu.
But I got a little bit sick of everytime creating manually a shortcut to the program,
so I wanted to just let the MSI create that shortcut on the Server location.
I.e. for the Orca MSI at:
\\server\menustart$\%COMPUTERNAME%\Orca.lnk
Or
M:\%COMPUTERNAME%\Orca.lnk
if the first one isn't supported by MSI (if that is, a bit strange trough).
I've tried a few things but I'm getting error messages everytime and I still can't get the hang of the Directory table.
So can anybody help me with this.
Thanks,
Snake86.
Btw: sorry if my senses are a bit strange, I'm Dutch.
i have a lot of MSI packages, which I deploy trough GPO, some of them I deploy to users.
I've deleted all the shortcuts the package actually makes with Orca untill now.
That's because when a user logs on shortcuts from a server locations will be copied to the Start Menu.
But I got a little bit sick of everytime creating manually a shortcut to the program,
so I wanted to just let the MSI create that shortcut on the Server location.
I.e. for the Orca MSI at:
\\server\menustart$\%COMPUTERNAME%\Orca.lnk
Or
M:\%COMPUTERNAME%\Orca.lnk
if the first one isn't supported by MSI (if that is, a bit strange trough).
I've tried a few things but I'm getting error messages everytime and I still can't get the hang of the Directory table.
So can anybody help me with this.
Thanks,
Snake86.
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
aogilmor
17 years ago
snake, the way to do what you are want with an MSI is to set up your shortcut paths in the property table.
Property Value
SHORTCUTPATH M:\app path\exename.exe
Then in the Shortcut table, set your Target Field = to [SHORTCUTPATH] (you need the square brackets).
If you want to set the Working Directory (WkDir) you must set up a second property and populate that field with the property name WITHOUT brackets. The altiris forums have some good info on this.
Property Value
SHORTCUTPATH M:\app path\exename.exe
Then in the Shortcut table, set your Target Field = to [SHORTCUTPATH] (you need the square brackets).
If you want to set the Working Directory (WkDir) you must set up a second property and populate that field with the property name WITHOUT brackets. The altiris forums have some good info on this.
Posted by:
Snake86
17 years ago
I think you understand me wrong, the MSI package has to create the shortcut in \\server\menustart$\%COMPUTERNAME%.
For %COMPUTERNAME% then the name of the computer where the package is installed.
And that shortcut links to the file somewhere in the program files folder where it is installed on that machine.
Snake86
For %COMPUTERNAME% then the name of the computer where the package is installed.
And that shortcut links to the file somewhere in the program files folder where it is installed on that machine.
Snake86
Posted by:
nheim
17 years ago
Hi Snake86,
you have to use the correct format to read an env. variable. See:
http://msdn2.microsoft.com/en-us/library/aa368609.aspx
Your path string should look like this: \\server\menustart$\%COMPUTERNAME\Orca.lnk
If the variable doesn't resolve, create a custom action type 51 to set a property with the hole path.
Use logging to control the behaviour.
Hope this points you in the right direction.
Regards, Nick
you have to use the correct format to read an env. variable. See:
http://msdn2.microsoft.com/en-us/library/aa368609.aspx
Your path string should look like this: \\server\menustart$\%COMPUTERNAME\Orca.lnk
If the variable doesn't resolve, create a custom action type 51 to set a property with the hole path.
Use logging to control the behaviour.
Hope this points you in the right direction.
Regards, Nick
Posted by:
Snake86
17 years ago
All right, I did it. For the people who are interested:
I've created a new property row (in the property table),
with as property MenuStartOnServer and the value \\server\menustart$\%ComputerName%.
Next I've changed the Directory_ value in the Shortcut table to MenuStartOnServer.
This worked fine!
Thanks all for you're replys.
I've created a new property row (in the property table),
with as property MenuStartOnServer and the value \\server\menustart$\%ComputerName%.
Next I've changed the Directory_ value in the Shortcut table to MenuStartOnServer.
This worked fine!
Thanks all for you're replys.
Posted by:
madhuri.ts
13 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.