cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pseamans
Level 2

Silent installs and XCopyFile

In testing my install in silent mode the only thing noticeable is a copy progress bar when I call XCopyFile in OnFirstUIAfter. The reason I'm doing this is because the file i'm copying over isn't part of the install itself but rather if it's available I want to copy it over. I've tried playing with Enable(INDFILESTATUS) in an attempt to not show this dialog during silent installs but no luck.

Suggestions appreciated.
Labels (1)
0 Kudos
(2) Replies
Pallavi_Agrawal
Level 4

Hi..

Please tell me how can i install an exe file in silent mode..?

Also I want to associate its process to my progressbar...

I have Idea like there should be a way through which I can associate a process handle of currently running process... but still m not getting any type of success...


Please Help me..:o 😞 :mad:
0 Kudos
enanrum
Level 9

To run an MSI exe silently you can do something like:

setup.exe /v"/qn" /v"PROPERTY1=propery1Value" /v"PROPERTY2=property2Value" /v"INSTALLDIR=\"C:\PF\etc..\""

keep in mind that if you were to launch this from cmd line on its own - it will come right back to the prompt - put it in a batch file and it will do its thing.

Also if there are spaces in your properties - they need to put in dbl quotes, like the Install Location.

I do not think you need to do /v" for each property but this works for me.

I use the following for my custom prereq that always runs silently. To pass properties from my main installer to the prereqs I added the following command line parameters in the App to Run tab of the .prq editor:

/v"/qn" /v"PRODUCTKEY=[PRODUCTKEY]" /v"TSQ_LANGUAGE=[TSQ_LANGUAGE]" /v"INSTALLDIR=\"[INSTALLDIR]\""


Regards,
Tom
0 Kudos