Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Admin Director BEFORECMD issue

Status
Not open for further replies.

jmongan

Mechanical
Oct 7, 2004
39
I have two batch files create, one that does a complete hands free uninstall of SW and one that installs some add in, regitry settings, etc.

In the admin directory "client options" file you can run and programs BEFORECMD and AFTERCMD.

The problem is when you use the BEFORECMD, it only wait about 10 seconds then starts the SolidWorks install. I want my batch file that uninstalls everything and cleans out the registry to finish before the SW install begins.

Anyone know how to make the SW install wait until the batch command ran from BEFORECMD finishes?
 
Replies continue below

Recommended for you

I might have a work-around for this problem. I dont use the html-file which comes with the silent-install. I have a created a batchfile myself which launches the install. Maybe you can do this as well and launch your uninstall-batch-utility in this batch-file.

I hope I have made myself clear.

Regards,

Bouke Brouwers
Mechanical Engineer
SW2005 SP1.0
 
That makes sense. I know the path names wont be the same but could you copy the text from your batch file in a post for me to look at. I would like to see your approach. I am guessing you are just calling out the .msi file for installing SW.
 
I found my first issue, if I call out the .msi file with a batch command I am not sure how to tell it to use the client_options.ini file.

I want it to use the client options file so it is a silent install.
 
bouke,

The HTML file uses the following to call out the SW install and to tell it to used the info from the client_options.ini at the same time.

WshShell.Run """\\jhas13\SW05_Admin_Image\swsetup.exe"" /ini ""\\jhas13\SW05_Admin_Image\SolidWorks_2005_SP0_client_options.ini"""

If I can find a way in a batch command to make the swsetup.exe file run and use the .ini file for the options I would be all set.

 
jmongan,

I only use the following very simple batch-program:

Code:
echo off
echo Starting the Installation of SolidWorks 2005


\\[your image location]\swsetup.exe /ini \\[your image location]\SolidWorks_2005_SP0_client_options.ini

end

Bouke Brouwers
Mechanical Engineer
SW2005 SP1.0
 
Thanks for the feedback. I ended up trying just that but I was still having some issues.

I have a .bat file set up to uninstall SW, addin's and clean the registry. Then install SW, then install some add in products and pass some reg settings etc.

When I used the .exe with the .ini file, the .exe would launch and then the next set of commands would begin before the .exe was finished.

I ended up calling out the .msi file with a .mst instead of an .exe with a .ini. It does the same thing filling out the parameters during the install, but it waits for the SW install to finish before continuing.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor