Page 1 of 1

desktop shortcut & remote deployment

Posted: Wed Mar 12, 2014 8:49 am
by jkirby
HI Support,

I have created a project which i can successfully push out via group policy, the only thing that doesn't work is adding a shortcut to the desktop. Is this because the deployment is based on the computer rather than the user. e.g The software is installed on start up (before any user has logged in) and if so is there anyway around it?

Thanks,
James.

Re: desktop shortcut & remote deployment

Posted: Wed Mar 12, 2014 11:59 am
by FrancescoT
Dear James,

I suppose that probably this happens because the desktop destination folder for the shortcut is not correct.

If you try to install your package manually (without pushing it via group policy) for all users (per-machine), does it create the desktop shortcut?

Regards

Re: desktop shortcut & remote deployment

Posted: Thu Mar 13, 2014 2:02 am
by jkirby
yes, when installing manually the shortcut is created on the desktop.

Re: desktop shortcut & remote deployment

Posted: Thu Mar 13, 2014 9:09 am
by FrancescoT
Dear James,

Could you please try if the attached msi package creates a desktop shortcut?

NOTE!
the attached package executes a per-machine (for all users) installation only.

Regards

Re: desktop shortcut & remote deployment

Posted: Fri Mar 14, 2014 3:18 am
by jkirby
Morning Francesco,

I've run the MSI manually and via group policy and the shortcut gets added both ways, so I guess I'm doing something wrong with my MSI build?

Re: desktop shortcut & remote deployment

Posted: Fri Mar 14, 2014 9:08 am
by FrancescoT
Dear James,

First verify that your MSI script code includes the following code (at the very beginning of the "Process (Un)Installation" code region);

Code: Select all

if Variable ALLUSERS Equals TRUE
  Comment: THE FOLLOWING COMMAND USES THE "GET FOR ALL USERS" FLAG
  Comment: TO RETRIVE THE DESKTOP FOLDER LOCATION "FOR ALLUSERS".
  Get Common Folder Location System->Desktop Directory into DESKTOPDIR
else
  Get Folder Location System->Desktop Directory into DESKTOPDIR
end

Then verify that the ALLUSERS pre-defined variable is effectively TRUE (per-machine installation).
It is possible to force this variable as TRUE, executing the MSI file from command line as follow;
> msiexec.exe /i <msi-package> CMDLINE="ALLUSERS=TRUE"

Alternatively, it is possible to use the IA Group Policy Wizard tool to embed the above command line with the MSI package.
In this case enter "ALLUSERS=TRUE" (without quotes) in the "Command Line parameter" filed of the IA Group Policy Wizard tool (while converting your setup.exe to MSI).

Hope this helps you.

Regards

Re: desktop shortcut & remote deployment

Posted: Mon Mar 17, 2014 9:50 am
by jkirby
Hi Francesco,

Adding that script fixed my problem.

Thank you for your help

James.

Re: desktop shortcut & remote deployment

Posted: Mon Mar 17, 2014 12:11 pm
by FrancescoT
:D