UNC Path for Working Directory in Shortcut - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

cello
Posts: 1
Joined: Tue Apr 17, 2007 1:14 pm

UNC Path for Working Directory in Shortcut

I need to build a MSI-Package to distribute shortcuts to Clients in a Company which uses different UNC target locations depending on their physical location. There is no problem to create the right "Shortcut Target" with custom actions (used vbs) to read a part of the client names (defining it's physical location).
The working directory needs also to point to this UNC location. This seems only possible if a property based folder is created. However, if the property based folder is used in "Working Directory" of the shortcut the Installer fails with "could not acces \\server\share". The package is working if installed as user. Assigned to a Group Policy for Computers it fails even the computer has enough rights to acces the share and files.

ie.
Target Directory: \\server%location%\share\file
Working Directory: \\server%location%\share

Thanks for any help.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Here is how you can point a shortcut to a network location:

Define a property in the "Install Parameters" page like this:
Name: MY_SHARE
Value: \\server\share (this value must be valid)

In the "File and Folders" page choose "New Shortcut To->External File..." from the context menu. In the "Shortcut Target" type: [MY_SHARE]file.ext.

Create a property based folder with this property. Choose this folder as "Working Directory" for the shortcut.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”