Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Destination folder path

Updated: 26 Sep 2010 | 8 comments
umeshbg's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

Hi
I am doing a project, I am running a setup.exe in UI, the setup .exe will run only for specified path.
Means The dependent files for setup.exe will be in path D:\GMSTemp\CCAP2p0_Installable & the working msiscript Test.msi path is D:\GMSTemp, The path variable Name is XYZ Current value is D:\GMSTemp. I have added all the files from source to destination computer. If i run the script choosing destination folder as D:\GMSTemp\CCAP2p0_Installable the setup.exe will run. If i choose the different folder say D:\GMSTemp or some other folder, MSI script will execute without any error but the setup.exe will not run.
I copied the Test.msi script to different machine there also MSI script will run without executing setup.exe. The script is
Execute a Program From Destination [INSTALLDIR]\CCAP2p0_Installable\setup.exe Default Directory XYZ (INSTALLCCAP)

My question is as i have added all the files from source to destination computer is it necessary to specify the path where the setup.exe & dependent files are present?
The Test.MSI file i copied to Path D:\Umesh\Project\Test.msi i tried to run the script it will execute the script without any error but setup.exe will not exucute. The log file is attached for the same one. Please guide me where i am wrong?

Please ping me if my question is not clear.
Thanks.

Discussion Filed Under:

Comments

VBScab's picture
19
Aug
2010
0 Votes 0
Login to vote

Is there some reason...

...why you're not re-packaging the application? It seems to me that, after 3 days (this is essentially the same question that you asked the other day), you could have done that and moved on to the next challenge.

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.

EdT's picture
19
Aug
2010
0 Votes 0
Login to vote

Do you study the log file

Do you study the log file before posting, or are you just hoping that we will do your job for you. This is clearly the same question you have asked again and again in these forums, so if you cannot get it to work, follow VBScab's advice and repackage the install that you cannot get to work.
Also, you must NEVER assume that some magic exists whereby the installer knows the path to a file.
ALWAYS specify a full path to every file you reference in a command line.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

umeshbg's picture
19
Aug
2010
0 Votes 0
Login to vote

HiI tried to re-package two

Hi EdT
In command line i used the full path its working fine now.  Sorry for small misatkes. 
Sorry for troubling you.

Thanks very much.

 

VBScab's picture
19
Aug
2010
0 Votes 0
Login to vote

What troubles us...

...is that you seem to post at the first hurdle. You will find your career path severely limited unless you begin to undertake basic troubleshooting before running up the white flag.

- Hopefully, you're testing this stuff on VMs/VPCs so you have nothing to lose by simply trying things. If 'x' doesn't work, go back to a snapshot and try 'y'.
- Log EVERYTHING.
- Learn how to use proper tools, like ProcMon.
- Test, test, test, test. Then test again.
- Search here, AppDeploy,InstallSite.ORG  and the vendor's site F I R S T, before posting. Someone, somewhere will almost certainly have come across the same - or similar - situation.
- Think laterally. Don't dismiss what you find in a search just because the post you found doesn't explicitly mention the application version you're dealing with or the file/registry key/value which is causing your problem. Think around what you find.
- Avoid running vendor set-ups via MSI unless you really, REALLY have to. I have yet to encounter an app which couldn't be re-packaged. Apart from anything else, until you do that, you have no idea what it's going to do to your workstations. One day, that app you pushed out to 100s of workstations will break those workstations and you'll need to know why. If you don't know what's inside the package, how will you fix it and, just as importantly, explain to senior management why no-one can do any work for the next 'x' hours while you do?

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.

rama24s's picture
24
Aug
2010
0 Votes 0
Login to vote

Hi The above discussion i

Hi
The above discussion i have gone through the log file which umeshbg was posted.

QUOTE: If i run the script choosing destination folder as D:\GMSTemp\CCAP2p0_Installable the setup.exe will run. If i choose the different folder say D:\GMSTemp or some other folder, MSI script will execute without any error but the setup.exe will not run.
I copied the Test.msi script to different machine there also MSI script will run without executing setup.exe. The script is
Execute a Program From Destination [INSTALLDIR]\CCAP2p0_Installable\setup.exe Default Directory XYZ (INSTALLCCAP)

The solution from EdT is Quote:ALWAYS specify a full path to every file you reference in a command line

From log file INSTALLDIR is D:\Umesh\Project
the full path of a file is D:\Umesh\Project\CCAP2p0_Installable\setup.exe

As he questioned if he going to run the Test.MSI file on different machine. The path  D:\Umesh\Project may not be available on that machine. 

My question is if path D:\Umesh\Project is not available on different machine how the setup.exe will run?

ramyahg's picture
24
Aug
2010
0 Votes 0
Login to vote

If i am wrong please correct me

HI
The default directory  INSTALLDIR is D:Umesh\Project

As i understood that : if you running MSi script in a different machine while installation it will ask for the destination folder path there you can choose the path where MSI script is running for example your MSI script is in the path D:\First\New\Test.msi
The default directory is here INSTALLDIR is D:\First\New
The setup.exe path will be D:\First\New\CCAP2p0_Installable\setup.exe.

Please correct if i am wrong?

Thanks

VBScab's picture
25
Aug
2010
0 Votes 0
Login to vote

Always avoid hard-coded paths...

...where possible. In this case, prefix your EXE name with '[INSTALLDIR]'. The engine will resolve that property to the path that the user chooses to install to. Of course, it's a nonsense to have that choice, because the user isn't installing anything at that point. I would probably use [%TEMP] instead, i.e. the user's temporary folder.

Having said that, I would have avoided wasting days and days on pointless dead-ends and captured the thing to an MSI in the first place. Hang on, let me check...did I say that already? Hang on.........................oh yes, I did. Only three times so far, though. This is the fourth. And I'm willing to bet a sizeable sum that you STILL won't take that course. Bannatynning...

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.

rama24s's picture
25
Aug
2010
0 Votes 0
Login to vote

HI VBScab i will try to

HI VBScab
i will try to specify the correct path with the above post if anything wrong please correct me.

Quote ramyahg : The default directory is here INSTALLDIR is D:\First\New
The setup.exe path will be D:\First\New\CCAP2p0_Installable\setup.exe.

The default directory is here INSTALLDIR is D:\First\New
 Execute a Program From Destination [%TEMP%]\CCAP2p0_Installable\setup.exe.

The umeshbg post i understood that his question is, the msi script created if he gives msi script to the client, can the client able to run a script without any error?