It has been several years since the last time I used a batch
file to do a silent install and I am having some trouble.
I created a "one step" admin image for sw2008sp0.0 from a DVD that had been copied to a folder on my hard drive.
Next I installed by using StartSWInstall.hta. The installation seemed to work fine and solidworks operates fine.
So next I wanted to test my silent uninstall bat file. Initially I created my uninstall bat file by copying the contents from tech tip solution ID S-013266. I commented out the lines for cleaning the registery, I just want to start by uninstalling solidworks.
I also edited the line for uninstalling solidworks and replaced with my information (see below).
msiexec -x \\DELL-M90\sw2008sp0.0\SolidWorks\English_i386_SolidWorks.msi
When I launch the bat file I get a message asking "Are you sure you want to uninstall this product?", I select yes to that message, next I get a message for just a second that appears to indicate that the uninstall process is starting then I get a message stating
"This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.
I select Ok to that message and the process is terminated without uninstalling solidworks. I am able to uninstall by manually launching English_i386_SolidWorks.Msi
The only other thing to note is that I also have sw2009sp0.0 installed, it was installed manually from a download from the sw portal (the "old school" download method). I am not sure that this will cause a problem but I thought I would mention it here.
So why is my uninstall bat file not working???
Can anyone post their uninstall bat file contents here so I acan compare to mine?
Thanks,
Sam
I created a "one step" admin image for sw2008sp0.0 from a DVD that had been copied to a folder on my hard drive.
Next I installed by using StartSWInstall.hta. The installation seemed to work fine and solidworks operates fine.
So next I wanted to test my silent uninstall bat file. Initially I created my uninstall bat file by copying the contents from tech tip solution ID S-013266. I commented out the lines for cleaning the registery, I just want to start by uninstalling solidworks.
I also edited the line for uninstalling solidworks and replaced with my information (see below).
msiexec -x \\DELL-M90\sw2008sp0.0\SolidWorks\English_i386_SolidWorks.msi
When I launch the bat file I get a message asking "Are you sure you want to uninstall this product?", I select yes to that message, next I get a message for just a second that appears to indicate that the uninstall process is starting then I get a message stating
"This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.
I select Ok to that message and the process is terminated without uninstalling solidworks. I am able to uninstall by manually launching English_i386_SolidWorks.Msi
The only other thing to note is that I also have sw2009sp0.0 installed, it was installed manually from a download from the sw portal (the "old school" download method). I am not sure that this will cause a problem but I thought I would mention it here.
So why is my uninstall bat file not working???
Can anyone post their uninstall bat file contents here so I acan compare to mine?
Thanks,
Sam
This is what I've used in the past:
msiexec /x "\\server\Dropbox\SolidWorks2008\SolidWorks\English_i386_SolidWorks.msi" /qn
/x for the uninstall (not -x?) and the /qn to be silent.
Keep in mind there are separate MSI files for edrawings, swexplorer, etc.
I also found that the installation manager (actually titled SolidWorks 2008 SP4.0) continues to be in the add remove programs area even after all parts are removed. I have not found a way to script that one away without user interaction, but on my system if I run:
"C:\WINDOWS\SolidWorks\IM_20080-40400-1100-200\sldim\sldim.exe" /remove "C:\WINDOWS\SolidWorks\IM_20080-40400-1100-200\sldim\sldIM_installed.xml"
it will bring up the dialog box to uninstall it. This line may vary on installations so see knowledge base: S-04787 for further info.
-MB