/bundles/itninjaweb/img/Breadcrumb_cap_w.png
I'm working on a silent install for SnagIT 7.2.4.

I've managed to isolate a fair amount of stuff for SnagIT already see Snagit 7.X application Notes.

I am trying to apply the NEWKEY, TSC_SETUP_TYPE properties via a transform.

I can apply properties through the Command line, the package installs using the command line parameters, and everything works great.

If I apply the identical properties through a transform file, most if not all my options are IGNORED by the installer.

If I ( Yuk, I know I'm not spozed to do this [:'(] ) modify the MSI file package directly, the property values are accepted and everything works AWSOME. NOTE: I am applying the identical settings as I did trying to do the transform.

I've also tried to do some of my own custom registry edits using a transform with no success. I have been able to directly modify the original MSI file, adding extra registry settings, and everything worked great!

Editing the original MSI package in general is 'not a good idea', and poor form. Besides, that's what transforms are for, but if the packages IGNORE the transform, what's a packager to do?

I am adding quite a bit of stuff to the package BTW, code that initiallizes the user settings via active setup, and configuring user registry hive settings. Stuff that won't fly on a command line.

Any thoughts?

Regards,
---- Robb ----
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
I presume you tried installing with a verbose log? as in:

msiexec /qb /i your.msi /L*v "%temp%\install.log" TRANSFORMS=your.mst

You could always install one version without the mst, the other with the msi and compare the log files. Using a virtual machine environment is a big help when doing this kind of thing.

I'd be very surprised if verbose logging did not yield some really good hints.

Regards,
William
Answered 12/05/2005 by: williamp
Orange Belt

Please log in to comment
0
I'm running a VMWARE 3.0 workstation running Windows 2K.

Here I'm using a transform (SnagIT.MST) with the following settings: (note actual lic key not shown)

NEYKEY=ABCD-EFGH-IJKLM-OPQRS-1234
TSC_SETUP_TYPE=REGISTERED

C:\>dir snagit.*
Volume in drive C has no label.
Volume Serial Number is 74EE-532C

Directory of C:\

11/29/2005 15:10 11,793,408 SnagIT.msi
12/05/2005 09:56 5,120 SnagIT.mst
2 File(s) 11,798,528 bytes
0 Dir(s) 4,107,735,040 bytes free

C:\>msiexec /qb /i SnagIT.msi /L*v c:\msi.log /TRANSFORMS=SnagIT.mst



------------------------BEGIN LOGFILE 1-----------------------------------------
=== Verbose logging started: 12/5/2005 10:07:45 Build type: SHIP UNICODE 2.00.2600.1183 Calling process: C:\WINNT\system32\msiexec.exe ===
MSI (c) (44:1C): Resetting cached policy values
MSI (c) (44:1C): Machine policy value 'Debug' is 0
MSI (c) (44:1C): ******* RunEngine:
******* Product: SnagIT.msi
******* Action:
******* CommandLine: **********
MSI (c) (44:1C): Client-side and UI is none or basic: Running entire install on the server.
MSI (c) (44:1C): Grabbed execution mutex.
MSI (c) (44:1C): Cloaking enabled.
MSI (c) (44:1C): Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (6C:C4): Resetting cached policy values
MSI (s) (6C:C4): Machine policy value 'Debug' is 0
MSI (s) (6C:C4): ******* RunEngine:
******* Product: C:\SnagIT.msi
******* Action:
******* CommandLine: **********
.
.
.
MSI (s) (6C:C4): File will have security applied from OpCode.
MSI (s) (6C:C4): End dialog not enabled
MSI (s) (6C:C4): Original package ==> C:\SnagIT.msi
MSI (s) (6C:C4): Package we're running from ==> C:\WINNT\Installer\44bc8.msi
MSI (s) (6C:C4): APPCOMPAT: looking for appcompat database entry with ProductCode '{F1608947-B8A4-4D65-A7B8-8B1D669C0E2C}'.
MSI (s) (6C:C4): APPCOMPAT: no matching ProductCode found in database.
MSI (s) (6C:C4): Machine policy value 'TransformsSecure' is 0
MSI (s) (6C:C4): User policy value 'TransformsAtSource' is 0
MSI (s) (6C:C4): APPCOMPAT: looking for appcompat database entry with ProductCode '{F1608947-B8A4-4D65-A7B8-8B1D669C0E2C}'.
MSI (s) (6C:C4): APPCOMPAT: no matching ProductCode found in database.
MSI (s) (6C:C4): Transforms are not secure.
MSI (s) (6C:C4): Command Line: CURRENTDIRECTORY=C:\ CLIENTUILEVEL=2 CLIENTPROCESSID=1092 %HOMEPATH=\ %HOMEDRIVE=C: %HOMESHARE=
MSI (s) (6C:C4): Product Code passed to Engine.Initialize: '
MSI (s) (6C:C4): Product Code from property table before transforms: '{F1608947-B8A4-4D65-A7B8-8B1D669C0E2C}'
MSI (s) (6C:C4): Product Code from property table after transforms: '{F1608947-B8A4-4D65-A7B8-8B1D669C0E2C}'
MSI (s) (6C:C4): Product not registered: beginning first-time install
MSI (s) (6C:C4): Entering CMsiConfigurationManager::SetLastUsedSource.
MSI (s) (6C:C4): User policy value 'SearchOrder' is 'nmu'
MSI (s) (6C:C4): Adding new sources is allowed.
MSI (s) (6C:C4): Package name extracted from package path: 'SnagIT.msi'
MSI (s) (6C:C4): Package to be registered: 'SnagIT.msi'
MSI (s) (6C:C4): Note: 1: 2262 2: AdminProperties 3: -2147287038
MSI (s) (6C:C4): Machine policy value 'DisableMsi' is 0
MSI (s) (6C:C4): Machine policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C4): User policy value 'AlwaysInstallElevated' is 0
MSI (s) (6C:C4): Running product '{F1608947-B8A4-4D65-A7B8-8B1D669C0E2C}' with user privileges: It's not assigned.
MSI (s) (6C:C4): TRANSFORMS property is now:
MSI (s) (6C:C4): SHELL32::SHGetFolderPath returned: C:\Documents and Settings\rnthomas.CORP\Application Data
.
.
.
MSI (s) (6C:C4): Component: registry11; Installed: Absent; Request: Local; Action: Null
.
.
.
.
.
.
Action ended 10:07:53: InstallValidate. Return value 1.
MSI (s) (6C:C4): Doing action: WiseAltStartup
Action start 10:07:53: WiseAltStartup.
MSI (s) (6C:C4): Creating MSIHANDLE (417) of type 790542 for thread 1220
Action 10:07:54: AltStartup. Extracting properties...
.
.
.
AltStartup: TSC_SETUP_TYPE
.
.
.
AltStartup: NEWKEY
.
.
.
WiseAltStartup: CommonFilesFolder
WiseAltStartup: VC_Configurable_gdiPlus.3643236F_FC70_11D3_A536_0090278A1BB8
Action ended 10:07:56: WiseAltStartup. Return value 1.
.
.
.
Action 10:08:28: RollbackCleanup. Removing backup files...
MSI (s) (6C:C4): Unlocking Server
Action ended 10:08:28: InstallFinalize. Return value 1.
MSI (s) (6C:C4): Skipping action: TSC_HHUpd (condition is false)
MSI (s) (6C:C4): Doing action: RemoveExistingProducts
Action start 10:08:28: RemoveExistingProducts.
Action ended 10:08:29: RemoveExistingProducts. Return value 1.
MSI (s) (6C:C4): Doing action: WiseSingleFileCheck
Action start 10:08:29: WiseSingleFileCheck.
MSI (s) (6C:C4): Creating MSIHANDLE (648) of type 790542 for thread 1220
Action ended 10:08:29: WiseSingleFileCheck. Return value 1.
MSI (s) (6C:C4): Doing action: WiseCleanup
Action start 10:08:29: WiseCleanup.
MSI (s) (6C:C4): Creating MSIHANDLE (649) of type 790542 for thread 1220
Action ended 10:08:29: WiseCleanup. Return value 1.
Action ended 10:08:29: INSTALL. Return value 1.
Property(S): ProductCode = {F1608947-B8A4-4D65-A7B8-8B1D669C0E2C}
Property(S): ProductName = SnagIt 7
Property(S): ProductVersion = 7.2.4
Property(S): Manufacturer = TechSmith Corporation
.
.
.
Property(S): _WiseDialogFontDefault = {&MSSansSerif8}
Property(S): INSTALLDIR = C:\Program Files\TechSmith\SnagIt 7\
Property(S): WiseInitExistError = %s Version %s is already installed. You must uninstall the existing version before installing %s Version %s. Do you want to uninstall the existing version of %s?
Property(S): _WiseDialogTitleFontDefault = {&Arial8}
Property(S): INSTALLLEVEL = 3
.
.
.
Property(S): TSC_SETUP_TYPE = EVALUATION
.
.
.
Property(S): NEWKEY = xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
Property(S): NEWKEYSTARTVER = 7.1.0
Property(S): INSTALLDIR5 = C:\FMPATH\
Property(S): CURRENTVERSION = 0.0.0
.
.
.
Property(S): SecureCustomProperties = INSTALLDIR;START_NOW;TSC_SETUP_TYPE;UPGRADEBASE;CURRENTVERSION;CURRENTLICENSE;TSC_LANG;TSC_START_AUTO;TSC_EMAIL_SIGNUP;TSC_EMAIL_ADDR;NEWKEY;CURRENTUSER;TSC_DESKTOP_LINK;TSC_PRIVACYURL;TSC_EVALEMAIL;CURRENTKEY;TSC_DISTCODE;UPGRADE_1
Property(S): CURRENTLICENSE = Eval
Property(S): _WiseDebugMode = 0
Property(S): TSC_LANG = ENU
.
.
.
Property(S): PackageCode = {D9E72D71-AEA5-49B2-8EF2-5E9828D41F02}
Property(S): VC_Configurable_gdiPlus.3643236F_FC70_11D3_A536_0090278A1BB8 = C:\Program Files\TechSmith\SnagIt 7\
=== Logging stopped: 12/5/2005 10:08:29 ===
MSI (s) (6C:C4): Note: 1: 1707
MSI (s) (6C:C4): Product: SnagIt 7 -- Installation operation completed successfully.

MSI (s) (6C:C4): Cleaning up uninstalled install packages, if any exist
MSI (s) (6C:C4): MainEngineThread is returning 0
MSI (c) (44:1C): Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (44:1C): MainEngineThread is returning 0
=== Verbose logging stopped: 12/5/2005 10:08:31 ===
---------------------------------------------------------------------- END LOGFILE --------------------------------------------------

Now if I do this command: (note actual regcode not posted for obvious reasons)

C:\>msiexec /qb /i SnagIT.msi /L*v c:\msi.log NEWKEY="ABCD-EFGH-IJKLM-OPQRS-1234" TSC_SETUP_TYPE="REGISTERED"


--------------- Log file -----------------------
MSI (s) (30:A8): APPCOMPAT: no matching ProductCode found in database.
MSI (s) (30:A8): Transforms are not secure.
MSI (s) (30:A8): Command Line: NEWKEY=ABCD-EFGH-IJKLM-OPQRS-1234 TSC_SETUP_TYPE=REGISTERED CURRENTDIRECTORY=C:\ CLIENTUILEVEL=2 CLIENTPROCESSID=476 %HOMEPATH=\ %HOMEDRIVE=C: %HOMESHARE=
MSI (s) (30:A8): Product Code passed to Engine.Initialize: '
.
.
.
AltStartup: HTML_Content
AltStartup: TSC_SETUP_TYPE
AltStartup: TSC_DISTCODE
.
.
.
AltStartup: ARPHELPLINK
AltStartup: NEWKEY
AltStartup: NEWKEYSTARTVER
.
.
.
Property(S): HTML_Content = C:\Program Files\TechSmith\SnagIt 7\HTML_Content\
Property(S): TSC_SETUP_TYPE = REGISTERED
Property(S): TSC_DISTCODE = TSCFTP
.
.
.
Property(S): ARPURLINFOABOUT = http://www.techsmith.com
Property(S): ARPHELPLINK = http://support.techsmith.com
Property(S): NEWKEY = ABCD-EFGH-IJKLM-OPQRS-1234
Property(S): NEWKEYSTARTVER = 7.1.0
Property(S): INSTALLDIR5 = C:\FMPATH\
.
.
.
Property(S): SecureCustomProperties = INSTALLDIR;START_NOW;TSC_SETUP_TYPE;UPGRADEBASE;CURRENTVERSION;CURRENTLICENSE;TSC_LANG;TSC_START_AUTO;TSC_EMAIL_SIGNUP;TSC_EMAIL_ADDR;NEWKEY;CURRENTUSER;TSC_DESKTOP_LINK;TSC_PRIVACYURL;TSC_EVALEMAIL;CURRENTKEY;TSC_DISTCODE;UPGRADE_1
Property(S): CURRENTLICENSE = Eval
Property(S): _WiseDebugMode = 0
-----------------------------------------------------------------------------



As you can well see, it's like my transform file doesn't exist, and all settings / values are just being ignored???

If I edit properties directly from command line, or DIRECT EDIT the MSI, then things work. If I try to do it the 'right way' with a transform file, the settings being applied are totally ignored with no mention of the new settings in the log file. So you're right, there are no hints.

Regards,
----- Robb -------
Answered 12/05/2005 by: Robb Thomas
Senior Yellow Belt

Please log in to comment
2
Your answer is......

Do NOT put a slash before the TRANSFORMS key word!!!!!

You may award me points for this, thank you very much. :-)
Answered 12/05/2005 by: williamp
Orange Belt

Please log in to comment