Install.bat
RunAsCurrentUser.exe --w "netmap.exe"
if exist "C:\Program Files\InstallShield Installation Information\{8A94281C-8C6C-42FA-9A47-16F789089C58}" goto UNINSTALL
if exist "C:\Program Files\InstallShield Installation Information\{7FABEA5B-B654-4A66-8E6D-EE12D6172EE2}" (
goto END
) ELSE (
goto INSTALL
)
:UNINSTALL
CALL uninstallslv7.bat
RunAsCurrentUser.exe --w rmfolder.exe
:INSTALL
xcopy "setup" "C:\windows\" /E /C /R /Y
RunAsCurrentUser.exe --w setup.exe /s /f1C:\Windows\setup.iss
xcopy "Icon" "C:\Users\Public\Desktop\" /E /C /R /Y
:END
Netmap.bat (turned into netmap.exe)
if exist S: goto REMOVE (
) ELSE (
goto MAP
)
:REMOVE
net use S: /delete
:MAP
net use S: \\<DynamicsServer>\<ClientShare>
Uninstallslv7.bat
xcopy "uninst" "C:\Windows" /E /C /R /Y
RunAsCurrentUser.exe --w C:\Program Files\InstallShield Installation Information\{8A94281C-8C6C-42FA-9A47-16F789089C58}\setup.exe /s /f1C:\Windows\setup.iss
rmfolder.bat (Turn into an exe and run with RunAsCurrentUser.exe)
rmdir /s /q "%UserProfile%\AppData\Roaming\Microsoft Dynamics SL\"
i. Netmap.exe is needed because when KACE deploys network mapping bat files through Managed Installations on 64bit the drive comes up as disconnected and even though you can access it, for SL2011 the system looks to the network location during the install.
ii. While you can easily set network mappings with GPO, it isn’t viable in this situation as we’re currently between SLv7 and SL2011.
i. I actually screwed up here; I was thinking I would need to make the uninstallslv7.bat into an exe as well; however that’s not the case. If you want to skip the bat file for the uninstallation you can input that code into the Install.bat instead and it will work just fine.
We learned that after deployment and upgrade of the SLv7 that you also need to delete the previous application folder of SL or else the previous Solomon.ini will be pointing at the old server and database. Simply delete that folder and the new Solomon will automatically create the new one.
The folder is located at C:\Users\<Username>\AppData\Roaming\Microsoft Dynamics SL
I've edited the scripts pages to add the additional batch file/EXE to fix this. RMfolder.bat (turned into RMfolder.exe like we did to slmap.bat)
As well I've added a line to copy the new SL Desktop Icon from the folder "Icon" to the Public Desktop. As this was another small annoyance.
View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.