Tuesday, June 21, 2011

Removing the Installshield Brand from the dialogs in Basic MSI type projects

Hello Friends, yesterday my client told me to remove all the Installshield Brand text at the left bottom of all dialogs. At first glance, it seems simple, as to just click and remove the Installshield text. But when I tried it, then it was really shocking to notice that the text I want to remove is disabled. Neither the line is enabled.

It was a real headache. Nowhere in the installshield help, nor in many forums, I failed to find any solution. This task was easy to do in Installscript MSI type projects, as there you are having that line and Installshield brand as a control, which you could delete from the control table.

Well, today I got a solution, which will hide Installshield brand, and the line adjoining it.

We will look one by one in different types of projects.

Installscript MSI:
In Installscript MSI type projects, first edit the dialog in which you want to Remove the Installshsield branding as shown below:

Then, goto Control table in Direct Editor, and remove the entry for ContorlId_7 as shown below:

Then make the width of the line same as the width of the dialog as shown below:

After editing the left coordinates and the width of the line, the design time preview should be like:

Basic MSI:
A Basic MSI dialog will look by default as:

Now we need a final dialog like: 

Now the question of concern is how could we achieve it. At first, it all seems to be as simple as selecting and deleting the control, but its not so similar to the steps performed in Installscript MSI project. Here we need to edit the "Control" table in Direct Editor.
By default values for Branding1 and Branding2 controls are shown below:

We need to edit attributes value for Branding1 from 3 to 2 and value for Branding2 from 65537 to 65536 as shown below:
Now, if you test the installer dialog then it will look like:


Now to put he line from left, we need to create a line control from the Installshield IDE controls toolbar as shown below:













Specify the left coordinates for the line control to 0 and width equal to that of dialog.

Finally the dialog will look like:

So, this way we can remove the Installshield brand name from the dialogs. Hope this post will be very helpful to you to customize your custom dialogs.

Tuesday, June 7, 2011

How to prevent application to show in ADD REMOVE Panel

In some cases, we need to hide the appearance of our product in Add or Remove Programs. 


Basic Msi Projects:
For Basic Msi Projects, we have a property named "ARPSYSTEMCOMPONENT". By setting this Windows Installer Property to 1 in the Property Manager, we could achieve this task. By setting this property, we simply suppress the display of our product in Add or Remove Programs. An end user can still remove our product by running the installation in maintenance mode or from the command line. 


Installscript Msi Projects:
To prevent our product from appearing in the Add or Remove Programs, select Yes for the Hide Add/Remove Panel Entry setting in the Releases view. 

Thursday, June 2, 2011

Running patch using admin execution level

Hi, I got a lot of appreciation for creating installer for my current project. After that project I was involved in some different projects. Almost after an year when I was shifted again to my last year installer project, at first glance it looks like to be little uncomfortable, to look into what modifications have been done in last one year.

Above all that I was told to create Patch installer. Ufff... again a lot of R&D's as I was working for the first time on a patch installer project. Well again I came out through with flying colours, as the patch installer was appreciated by the client.

But one concern was raised, that when we execute the full installer directly by just clicking it, it runs by using "Admin Execution Level", as it was done by using a setting in the installer project as shown in the screenshot below.







But there was not such setting when we look into Patch installer properties. I was told to look into how to execute Patch as an Administrator without using right click and selecting "Run as admin".

Well I find a solution after doing a lot of R&D. There is a tool named isremane.exe. This tool can be find at link http://support.installshield.com/kb/...isremanexe.zip


Open a command prompt window and run the following command:
isreman.exe /manifest:"C:\PathToNewManifest\setup.exe.manifest" "C:\PathToSetup\setup.exe"

for C:\PathToNewManifest\setup.exe.manifest use the file...
C:\program Files\InstallShield\2009\support\SetupExe.Admin.manifest

That should do it.