/build/static/layout/Breadcrumb_cap_w.png

Redeploy Same Package

Guys.

I have a package that is installed on my users workstations. I installed this package with a .mst file some time ago. The application is now setup on the back end to use Active Directory but in order for the clients to use this i have to make some changes to the .mst. I have made the changes to the .mst but how can i get my workstations to recache the new.mst and then what command would i need to run in order for this to work?

Many thanks

craig

0 Comments   [ + ] Show comments

Answers (4)

Posted by: AngelD 16 years ago
Red Belt
0
Which deployment solution are you using?
Posted by: cjwallace 16 years ago
Orange Belt
0
Hello mate. I used SMS 2003 to push the application out when i first installed it. I am still using SMS at the moment and the application is still installed via SMS.

I have heard it is possible for the workstation to recache a new copy of the .mst file and then do a repair or reinstall but i have never had a need to do it in all the years i have been packaging \ using SMS

Thanks for any help you can give
Posted by: AngelD 16 years ago
Red Belt
0
You could use a vbscript something like the below.
Place the vbscript and the new updated transform in the same foler.
Execute the vbscript from SMS


On Error Resume Next
Dim ProductCode : ProductCode = "<ProductCode>" '// ex. {45FC26FB-19FD-4A96-BBB1-B1062E8648F5}
Dim MstFileName : MstFileName = "same_name_as_the_already_installed_transform.mst" '// ex. MyTransform.mst

Dim FSO : Set FSO = CreateObject("Scripting.FileSystemObject")
Dim WSHShell : Set WSHShell = CreateObject("WScript.Shell")
Dim ScriptPath : ScriptPath = StrReverse(Split(StrReverse(WScript.ScriptFullName),"\",2)(1))

'// Replace cached transform
Dim oFile : Set oFile = FSO.GetFile(WSHShell.ExpandEnvironmentStrings("%WinDir%\Installer\" & ProductCode & "\" & MstFileName))
oFile.Attributes = oFile.Attributes Xor 1
FSO.CopyFile ScriptPath & "\" & MstFileName, WSHShell.ExpandEnvironmentStrings("%WinDir%\Installer\" & ProductCode & "\"), True
oFile.Attributes = oFile.Attributes Or 1

'// Reinstall with replaced transform
Dim MSIERROR : MSIERROR = WSHShell.Run("msiexec.exe /fomusv " & ProductCode & " /qb!", 1, True)
WScript.Quite(MSIERROR)
Posted by: DevilsArcade 16 years ago
Senior Yellow Belt
0
why not just put a removal code in the updated .mst to remove the old install before installing this updated one? if it was a mandatory advertisement, you can either set a second mandatory assignment on the same advertisement, or just set up a second, new advertisement to get it out there.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ