make shortcut to a server location or get path to setup exe? - 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!

paul@jobpow.com
Posts: 33
Joined: Thu Oct 01, 2009 8:29 pm

make shortcut to a server location or get path to setup exe?

I have an “server “ install that runs from cd media to install components on a server computer.

One of the components that is placed on the server computer is an installer for the client install.
the client installer is accessed (not copied) from a network shared and executed from the client computer while the client installer EXE is on the server computer

The client installer installs some support files (dll’s, ocx’s) on the client computer.
After that is complete, I would like to make a shortcut *on* the client computer that references an exe that exists on the server computer.
Do you know of a way to accomplish this?

if it can't be don't in the AI project, i have a vbs script that could run and create the shortcut if i can figure out how to to run it from the installer. figuring out a path that points back to the server is my issue there.at the time of the commit, the SourceDir and SOURCEDIR properties point to a local cache location.OriginalDatabase and ParentOriginalDatabase are blank and /or pointing to the local cached location.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: make shortcut to a server location or get path to setup exe?

Hi Paul,

Here is what you could try:

-- in the Install Parameters page you can create a public property containing the path to server location of the exe
-- now in the Files and Folders page you can create a Shortcut to an External File using the context menu or the toolbar
-- you can set the "Shortcut Target" from the New Shortcut to the property you've created; please note that any shortcut to an external file must start with a public property
-- this way your created shortcut should point to the desired .EXE

Please let me know if you have any questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
paul@jobpow.com
Posts: 33
Joined: Thu Oct 01, 2009 8:29 pm

Re: make shortcut to a server location or get path to setup exe?

thanks for your response, but i am not seeing how the custom properties can be configured with a relative value. i.e. the "server" name is not constant, it is the name of the computer that the client install exe resides on.

i.e.

the server package is installed on this clients computer "this-server"
so the generica client exe that is part of the server deployment needs to be executed by the client computer "this-client" from a network share pointing to the server installation. "this-client" needs to end up with a shortcut that points to "this-server\some-folder\specific-exe-name"; where "this-client" and "this-server" are whatever the computer names are at the customer's site, and not customized per customer. thoughts?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: make shortcut to a server location or get path to setup exe?

Hi Paul,

I'm afraid there is no predefined method through which you can get the name of the server automatically. However you can make a custom dialog in which you ask the user the enter it.
This way you can save it in a public property that afterwards you can append to the path of the shortcut. Here is a tutorial that might help you.

Please let me know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”