×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Admin Director BEFORECMD issue

Admin Director BEFORECMD issue

Admin Director BEFORECMD issue

(OP)
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?

RE: Admin Director BEFORECMD issue

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

RE: Admin Director BEFORECMD issue

(OP)
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.

RE: Admin Director BEFORECMD issue

(OP)
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.

RE: Admin Director BEFORECMD issue

(OP)
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.

RE: Admin Director BEFORECMD issue

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

RE: Admin Director BEFORECMD issue

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources