- How to add font files in an MSI package without using Wise Package Studio’s File Display Section.
- Difference between deferred & immediate custom action.
- What will you do if you can’t solve a issue in a package.
- How to add shortcuts to startup folder.
- Which applications should not be repackaged in MSI
- Which & why files are stored in C:\Windows\Installer
- What are the differences between patching, update & upgrade
- How to view to installation log files, which third party tools can be used for this task.
- Where can I find the schema of MSI file.
- How will you get the table details by using MSI SDK but not using ORCA.
- How can Network Shortcuts be added in an MSI Package.
- How to install certifications using MSI
- What are the advantages of admin install
- What condition on CA will allow to “Install” and “repair” but not at “uninstall”
- How to create nested MSI Installation
- How to create MST file from two MSI files.
- How to ensure that MSI gets installed only on WinXPSP3, win 7 and IE 8
Category Archives: Windows
updated MSI Questions. Ver.: Alpha 4
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
TIPS: DELTREE in Windows XP
deltree can be simulated using the following .cmd file:
- Create an empty file deltree.cmd in %windir%\system32 folder
- Add the following content to the file, and save the file.
@echo off
del /S /F /Q %1
rd /S /Q %1
Disable “Use the web service to find the appropriate program”
Create the following DWORD key NoInternetOpenWith = 1 at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
Imaging WinXP using Knoppix
- Boot from knoppix
- Repartition your drive
- Base Partition – This is were your winXP is installed
- Image Partition – this is were your image of windows xp will be copied
- mount the image partition: mount /dev/sda2 /media/img
- Use the command to create the img: ntfsclone -s -o /media/img/winxp.img /dev/sda1
- use the command to restore the img: ntfsclone –restore-image -O /dev/sda1 /media/img/winxp.img
- Enjoy
Note: It is a good idea to have ext3 as filesystem for your image partition so that the image file is not deleted accidentally and also it overwrites the FAT32 2GB filesize limit.
Get the windows service state using Python
following code can be used to find if any service is installed and if so then return the state of the service.
import wmi class servicePython(): def __init__(self, serviceName): self.c = wmi.WMI () self.serviceName = serviceName def setServiceName(self, serviceName): self.serviceName = serviceName def getStatus(self): srv = c.Win32_Service (name=self.serviceName) if srv != []: return c.Status return False
PitHole: Windows : The specified service has been marked for deletion
When I try to install the install a service which i have just delete using sc command i get the following error :
“The specified service has been marked for deletion”.
Just close the services.msc and try again. otherwise one might have to restart the machine
to resolve the issue.
Disable the “Use the Web service to find the correct program” Dialog
Create the following DWORD key NoInternetOpenWith = 1 at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
A nice Defrag Utility
Today i came across a nice defrag utility which is free and have most of the features, One can download it from http://www.defraggler.com/.
Get Processes along with parameters
Click Start, Run and type CMD
Type the command given below:
WMIC /OUTPUT:C:\ProcessList.txt PROCESS get Caption,Commandline,Processid
or
WMIC /OUTPUT:C:\ProcessList.txt path win32_process get Caption,Processid,Commandline
Add Context Menu for a FileType
Eg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\\.osd] @="SoftGrid.osd.File" "Content Type"="application/softricity-osd"
[HKEY_CLASSES_ROOT\\SoftGrid.osd.File\\shell\\UpdateOSD]
[HKEY_CLASSES_ROOT\\SoftGrid.osd.Fileshell\\UpdateOSD\\Command] @="\"C:Program Files\\AddTabsToOSD\\addTabsToOSD.exe\" \"%1\""
The above reg key will add UpdateOSD menu for .osd file type
Adding Network shortcuts in MSI packages
Steps
- Create a property eg. INSTDIR in Property table
- Populate it with the network directory
- Create a property eg SHORTCUT1 in Property table /* IF not using Wise
- Polulate it with the full UNC path along with the executable name /* IF not using Wise.
- Create a shortcut using the shortcut under the shortcut table
- Update the WkDir coloum in Shorcut table with INSTDIR (no NOT add brakets [] before and after INSTDIR).