I also do not know the answer of this questions, but this is my solution
Try setting property
template “default.mst”
I also do not know the answer of this questions, but this is my solution
Try setting property
template “default.mst”
It is stored in “Control” Table
I have restarted the coding of mayadeploy, a Full Package Management Solution for Small Business, It will be re-coded in Python & G++, using WX as GUI library.
Few silent features are as follows,
as always i am requesting yours comments and suggestions to make it a success.
Hello all,
I have updated the MSI Interview Questions, the updated document can be downloaded from http://sourceforge.net/projects/mayadeploy/files/FAQ/FAQ%20on%20MSI%20packaging%20and%20repackaging_0.0_1Beta4.pdf/download.
Enjoy solving the last 3 questions.
As always the questions & answers might be wrong.
so please correct me if that is the case
.
Enjoy,
Mayank Johri
I am posting the first draft of FAQ of MSI packaging & repackaging. It can be downloaded from here or here.
Download the latest from http://sourceforge.net/projects/mayadeploy/files/FAQ/
Ruby
require ‘win32ole’
msiClass = WIN32OLE.new(“WindowsInstaller.Installer”)
msidb = msiClass.OpenDatabase(“C:\\temp\\MountPointGenerator.msi”,0)
newmsidb = msiClass.OpenDatabase(“C:\\temp\\updatedMountPointGenerator.msi”,0)
transform = newmsidb.GenerateTransform(msidb,”c:\\temp\\newtest.mst”)
Python
import win32com.client
import os
import sysmsiOpenDatabaseModeReadOnly=0
msidb=r”c:\temp\MountPointGenerator.msi”
msiupdb=r”c:\temp\updatedMountPointGenerator.msi”
mstdb=r”C:\temp\MNPtrans.mst”installer = win32com.client.Dispatch(“WindowsInstaller.Installer”)
database = installer.OpenDatabase(msidb, msiOpenDatabaseModeReadOnly)
updatedDB= installer.OpenDatabase(msiupdb , msiOpenDatabaseModeReadOnly)
updatedDB.GenerateTransform(database, mstdb)
Q: Explain the difference between Property and PROPERTY
ANS:
Public properties can be changed anytime by a user, system or admin on the command line while installing, by applying a transform or by interacting with the authored user interface (Installation Interface)
They are always in upper case
The installer uses then internally and their values are initialized in the installation database (msi) or set by the values determined by the OS.
Private property names must always include lowercase letters. (Thanks Alek for correcting)
More Questions can be downloaded from https://sourceforge.net/projects/mayadeploy/files/FAQ/. Just select the latest PDF file.
1. Create a new Directory in “Setup Files” and set the ID as “ProgramMenuFolder” and set Name as “Programs”.
2. Create a new Directory under this directory and set ID as “ProgramMenuDir”.
3. In the shortcut set the Directory as “ProgramMenuDir”
Steps