davidsmith
Posts: 59
Joined: Sun Jul 12, 2009 8:33 pm

Exception occurred while initializing the installation...

Here is a case I just encountered

1) The product is completely installed by the user. This issue is not possible when the user directly runs our .msi or .exe installer.

2) The user then goes to the Windows control panel and selects add/remove programs

3) The user clicks the "Change" button for our product

4) The user clicks on the "Modify" button.

5) The user selects the only feature that I called "Main".

6) From the dropdown list, the user selects "Feature will be installed when required".

7) The user finishes the installer process

8) The user goes back and now clicks on the "Remove" button in the add/remove programs dialog box. Result: Generates the error message: "Exception occurred while initializing the installation: System.ArgumentException: String cannot have zero length.."

The workaround to undo the action in (6). The user selects "Modify", and then selects "Will be installed on the local drive". Complete the installation process. Now the user can remove our product.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Exception occurred while initializing the installation...

Hi,

I am afraid i could not reproduce this behavior with a new blank project. This suggests the issue is caused by something in your project. Please send a working test case that accurately reproduces this error to support at advancedinstaller dot com.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”