Sign in to follow this  
Followers 0
flyonthewall

silent .exe ?

8 posts in this topic

Right now I'm running the following code, but it is not silent.

Run('\\server\folder1\folder2\Disk1\Client\setup.exe')

Unfortunately I do not have .msi files for most of the software install, and I could not get @SW_HIDE to work.

Thank you for any input.

Share this post


Link to post
Share on other sites



Perhaps the program spawns a sub-process which isn't hidden be @SW_HIDE. What is the program?

Share this post


Link to post
Share on other sites

Perhaps the program spawns a sub-process which isn't hidden be @SW_HIDE. What is the program?

Thanks for the quick reply.

It is Sage 7.05 (ERP Software).

I can post the entire code if you like.

Share this post


Link to post
Share on other sites

Something like this?

$File_Loc="\\server\folder1\folder2\Disk1\Client\"

$File="\\server\folder1\folder2\Disk1\Client\setup.exe'"

Run(@ComSpec & " /c FC /C " & FileGetShortName($File) ,$File_Loc, @SW_HIDE)

Share this post


Link to post
Share on other sites

I doubt there is any public documentation for this software. I tried finding something on their website without much luck. Do you know the type of installer used?

You may have to end up using keyboard / mouse automation if there are no command line options for the installer.

Share this post


Link to post
Share on other sites

I assume you have tried adding the /? switch to the setup file on a command line?

\\server\folder1\folder2\Disk1\Client\setup.exe /?

Share this post


Link to post
Share on other sites

I doubt there is any public documentation for this software. I tried finding something on their website without much luck. Do you know the type of installer used?

You may have to end up using keyboard / mouse automation if there are no command line options for the installer.

We do have some of their documentation, and it does show how to run a silent install (Msiexec.exe /i MSIfile Property=Value /qn), but the problem comes w/service packs, and updates that are in .exe format.

I have the install all ready to go for this Sat., using simulated keystrokes:

WinWaitActive ("Sage MAS 500 Client Setup", "Welcome to the Sage MAS 500 Client Setup Wizard")
Sleep (3000)
Send ("!n")
WinWaitActive ("Sage MAS 500 Client Setup", "License Agreement")
Sleep (2000)
Send ("{UP}")
Sleep (1000)
Send ("!n")

We had to change the "Stand By Settings" in Group Policy so the install will run when we push the package out to users, but still wanted to try a silent on .exe's.

Thank you all for your help.

Have a great day.

Share this post


Link to post
Share on other sites

I assume you have tried adding the /? switch to the setup file on a command line?

\\server\folder1\folder2\Disk1\Client\setup.exe /?

Not yet, but I will.

Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0