Transforms

Transforms

Hello everyone,

I am very new to packaging and attended a class on WPS pro but still find myself a little lost and I was hoping you can give me some insight.

I have packaged an app and created a transform for it and I want to just be able to click on either and MSI or EXE that will lanch and install the app with the changes I have made. Does that make sense?

I am at a lost and everything I have read so far does not seem to be in english enough for me to understand. Can you please help me out.

Thanks,
Elliott

the only way I know how to

the only way I know how to apply a transforms is to create a shortcut of the msi and add TRAMSFORMS=Filename.mst at the end of the line in the target or, as an alternative, you can create a batch file with the following line:

start /wait filename.msi /qn TRANSFORMS="filename.mst"

The batch file must reside in the same folder as the msi and mst.

WiseScriptEditor

Paste this into WiseScriptEditor.

item: Set Variable
  Variable=SOURCE
  Value=%TEMP%\mysetup
end
item: Install File
  Source=c:\my\setup\files\*.*
  Destination=%SOURCE%
  Flags=0000000110000010
end
item: Set Variable
  Variable=MSI
  Value=%SOURCE%\%MSI%
end
item: Set Variable
  Variable=TRANSFORM
  Value=TRANSFORMS="%SOURCE%\mytransform.mst"
end
item: Execute Program
  Pathname=msiexec.exe
  Command Line=/i "%MSI%" %TRANSFORM%
  Flags=00000010
end