Adventures in administrative image land
Posted: Mon Mar 20, 2023 9:59 am
so I have just deployed more than 100 workstations. It was the first time, without experience in scripting and I made a lot of mistakes... the biggest was to trust SOLIDWORKS.
- Documentation is poor and you have to figure everything by yourself.
- when launching the script in the pre and post processing keep in mind that user interaction is not allowed everything must be run silently and un elevated as the installer is already runnIng with administrative privileges
- batch language is bad
- configuration utility is garbage and require you put the setting file On a shared path. PDM edrawings and simulation must be configured via registry figuring out the keys using dozen of KB articles and a lot of trial and error. it seemed a good idea to take the sldreg as a base and write some other reg for pdm sim edrawings
BUT
- If you think to use the setting file that SW output as a reg file be very careful as some part is exported without escaping the "\" with "\\".
SW import the wrong sldreg it exported correctly so I ended up deploying 100 machines with a registry glitch that got accidentally unnoticed during the test phase making SW crash on a lot of comands. it took me one day to figure it out.
sldreg is supposedly reg4 (ansi or shiftJIS for us double byte characters junkies) while modern reg5 (UTF16LE)is not compatible and for us it is a pain on many levels.
solidworks do not use the sldreg strait, but it somehow check it and change it as needed.
- If you plan to overwrite the registry with the pre or post scripts be aware that SW installer is 32bit so you could end up writing the 32bit portion of the registry and SW would apparently skip your settings in HKLM. Took two weeks to figure it out.
- batch language is bad
- due to some internal regulations we ended up deploying the administrative on each C: drive. It is mentioned in a phrase in the manual and nothing more: it is possible but it has a lot of limitations. still very useful.
- pdm vault view creation does not work as per SW 2022. not a big problem anyway
- when using the automatic deployment you need one user common for each workstation that exists locally. the installation run as a task scheduler Task under SYSTEM user so it is not visible on a local user desktop (running in background)
We were forced to log in with every single user so I made a batch to automate remote desktop from an excel list of our machines user and pw
- batch language is bad
- after installing SW from an admin Image copied in C: it could be deleted still allowing the unistall process
- clean install (5.6gb SSD) took 15-20 min, while 45 min to upgrade
1h and half for HDD (we still have those leased machines).
it includes:
unistalling a third party software;
installing and configuring sw, pdm etc;
reinstall a third party software;
reboot the machine
- I made a script to synchronize the local admin image to the server copy if needed. very useful to patch things in the future. (thanks god I made it so tomorrow I am going to fix the registry mess)
Did I said that batch language is bad?
I should add that paired with asian languages is a suicide mission.
have a nice day, mine was spent to debug solidworks registry for the 100th time. it is 11PM and I want to go home.
- Documentation is poor and you have to figure everything by yourself.
- when launching the script in the pre and post processing keep in mind that user interaction is not allowed everything must be run silently and un elevated as the installer is already runnIng with administrative privileges
- batch language is bad
- configuration utility is garbage and require you put the setting file On a shared path. PDM edrawings and simulation must be configured via registry figuring out the keys using dozen of KB articles and a lot of trial and error. it seemed a good idea to take the sldreg as a base and write some other reg for pdm sim edrawings
BUT
- If you think to use the setting file that SW output as a reg file be very careful as some part is exported without escaping the "\" with "\\".
SW import the wrong sldreg it exported correctly so I ended up deploying 100 machines with a registry glitch that got accidentally unnoticed during the test phase making SW crash on a lot of comands. it took me one day to figure it out.
sldreg is supposedly reg4 (ansi or shiftJIS for us double byte characters junkies) while modern reg5 (UTF16LE)is not compatible and for us it is a pain on many levels.
solidworks do not use the sldreg strait, but it somehow check it and change it as needed.
- If you plan to overwrite the registry with the pre or post scripts be aware that SW installer is 32bit so you could end up writing the 32bit portion of the registry and SW would apparently skip your settings in HKLM. Took two weeks to figure it out.
- batch language is bad
- due to some internal regulations we ended up deploying the administrative on each C: drive. It is mentioned in a phrase in the manual and nothing more: it is possible but it has a lot of limitations. still very useful.
- pdm vault view creation does not work as per SW 2022. not a big problem anyway
- when using the automatic deployment you need one user common for each workstation that exists locally. the installation run as a task scheduler Task under SYSTEM user so it is not visible on a local user desktop (running in background)
We were forced to log in with every single user so I made a batch to automate remote desktop from an excel list of our machines user and pw
- batch language is bad
- after installing SW from an admin Image copied in C: it could be deleted still allowing the unistall process
- clean install (5.6gb SSD) took 15-20 min, while 45 min to upgrade
1h and half for HDD (we still have those leased machines).
it includes:
unistalling a third party software;
installing and configuring sw, pdm etc;
reinstall a third party software;
reboot the machine
- I made a script to synchronize the local admin image to the server copy if needed. very useful to patch things in the future. (thanks god I made it so tomorrow I am going to fix the registry mess)
Did I said that batch language is bad?
I should add that paired with asian languages is a suicide mission.
have a nice day, mine was spent to debug solidworks registry for the 100th time. it is 11PM and I want to go home.