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.

Adding files from source to destination computer

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

Hi

I am doing a project in that i have added a files form source to the destination computer, files contains setup.exe & dependent files for setup.exe. If i run the MSI script installation the setup.exe is woking fine. While uninstalling the MSI script the all files i added from source to destination computer will be removed, if i uninstall setup.exe form "Add/Remove Program" while unistalling MSI script the setup.exe will install.

Is it possible the files i added from source to destination computer during uninstall MSI script files cannot be removed. & while uninstalling MSI script the setup.exe will be uninstalled.

Thanks.

Discussion Filed Under:

Comments

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

Why do things the hard way?

Why not simply capture the setup to a new MSI (assuming that the EXE doesn't already extract an MSI, that is)?

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.

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

Yes that can be done. But i want to have generic path variable, if i run msi file on different machine setup.exe should be run, thsts why i am adding files from source to destination computer.

Thanks

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

Huh?

My head is about to explode...

I can't see what difference installing on a different machine makes, unless of course you mean that the machines run a different operating system. Even then, you can detect the OS - and the various versions of Windows OS's - in order to determine the installation path, so that doesn't make any difference, either.

Please clarify what your desired end result is. For example, I can't make head or tail of this:

>if i uninstall setup.exe form "Add/Remove Program" while unistalling MSI script the setup.exe will install.

How does uninstalling trigger an install?!?

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.

Mistral's picture
11
Aug
2010
0 Votes 0
Login to vote

Is it possible you are running setup.exe by a custom action in the MSI?

If so, you need a condition like "NOT REMOVE", so it wont run on uninstall.

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

ok thanx for the information.

Need one more help.
i have added a files form source to the destination computer, files contains setup.exe & dependent files for setup.exe. If i run the MSI script installation the setup.exe is woking fine. While uninstalling the MSI script, all files i added from source to destination computer will be removed.
Is it possible the files i added from source to destination computer during uninstall MSI script files cannot be removed.

Mistral's picture
11
Aug
2010
0 Votes 0
Login to vote

Look at the "Details" of the components. There is a checkbox "Leave installed on uninstall".

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

Thanks Mistral its working fine.