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!

nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

lAUNCH A FILE

Hi,

I am trying to 'Launch a File' (a custom action) that is not part of my installation.
On the target machine the file is located under (note this is windows format):
%NP_HOME%\thirdparty\apache\bin

The file name is configure.cmd

I don't know why but it does not launch the file.
I tried ALL of the following:
1) Adding working dir [%NP_HOME]\thirdparty\apache\bin - DIDN'T WORK
2) Adding working dir [%NP_HOME]thirdparty\apache\bin - DIDN'T WORK
3) Adding working dir C:\MY_NP_HOME\thirdparty\apache\bin - DIDN'T WORK

The only thing that worked was by creating a property CONF_DIR with value C:\MY_NP_HOME\thirdparty\apache\bin
I added that property to 'Files and Folders' -> New Folder-> Property Based
I added the file configure.cmd to the folder CONF_DIR
Then I created that path on my machine (where I develop the installer) and I copied the file configure.cmd to that location. (That file should be already deployed on the target machine, not as part of my installation)
Then I chose the 'Launch File' option and choose the file.
There are few issues with that solution:
1) It is working only when property value is: C:\MY_NP_HOME\thirdparty\apache\bin ([%NP_HOME]\thirdparty\apache\bin and [%NP_HOME]thirdparty\apache\bin didn't work) - I need it to be under system environment location
2) I think that my solution is too complicated, I am sure that advanced installer has direct and better solution to launch that file.

Thanks in advance.
Nir
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: lAUNCH A FILE

Hello Nir,

I'm not so sure why this happens. Can you please make sure the "NP_HOME" environment variable exists on target machine and is resolved to the expected location? You can test this by trying to launch the "configure.cmd" file from a command prompt window. For example, if the following command (when typed in a command prompt window)

Code: Select all

%NP_HOME%\thirdparty\apache\bin\configure.cmd
successfully launches the "configure.cmd" file, then you can try to use a "Launch File" custom action configured like this:
  • File To Launch: [%NP_HOME]\thirdparty\apache\bin\configure.cmd
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

Re: lAUNCH A FILE

Hi Daniel.

I am sure that the environment variable is set correctly.
The execution via cmd of: %NP_HOME%\thirdparty\apache\bin\configure.cmd completed successfully.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: lAUNCH A FILE

Hello,

Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Also, can you tell us if the "NP_HOME" environment variable is a system variable or a user variable?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”