Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Conditional dialogs


10 replies to this topic

eelisdotnet

eelisdotnet
  • Members
  • 24 posts

Posted 31 May 2006 - 12:25

Hello

I have 2 dialogs in the installation UI that have to be presented only during first installation (Not Installed). I gather user specific information on these dialogs. This information is saved on a local settings file and is not required on reinstallation or upgrade.

Is it possible to use a condition for a dialog?

I use VS2003 Setup project, windows installer 3.1 on Win2K SP4

Thanks in advance!

eelis

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 31 May 2006 - 19:23

In Windows Installer in general: yes it's possible. You would have to change the condition for the event on the Next button (of the preceding dialog) that calls the dialog in question. Another typical solution is using a completely separate sequence of dialogs during maintenance.

In Visual Studio: I don't think you can control these details from the VS IDE. It's only for very simply, straight-forward installations.

Note also that "Not Installed" is not only true during first time install but also during a Major Upgrade (because you are instaling with a different ProductCode). Updates in VS (option "Remove previous version") are Major Upgrades.

eelisdotnet

eelisdotnet
  • Members
  • 24 posts

Posted 09 June 2006 - 10:01

Thanks Stefan!

How is it possible then to detect an upgrade (ProductCode and PackageCode change) from a first installation ?

I've tried different variations using 'UPGRADINGPRODUCTCODE' and none seems to work. Note also that 'RemovePreviousVersions=True'

In addition to the dialogs that have to be skipped, I have CA that should be skipped under the same condition and a settings file that should not be altered during the upgrade.

Thanks again..

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 June 2006 - 10:55

UPGRADINGPRODUCTCODE should work in the old version that is being removed by the Major Upgrade. Are you trying to detect this situation from the new version or from the old version? Also a verbose log file might help to find out what the problem is.

eelisdotnet

eelisdotnet
  • Members
  • 24 posts

Posted 09 June 2006 - 12:32

I use the UPGRADINGPRODUCTCODE in both versions.
The CA that should run on Install has a NOT UPGRADINGPRODUCTCODE condition. I also modified the ControlEvent table to include this condition to skip the customtext dialog (as you suggested before).

Well, at the moment none is working. the dialogs are presented during the upgrade and the CA runs as well.

I'll try to check with verbose log

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 June 2006 - 14:32

Just to avoid anymisunderstandings: only the old version which is being removed by the major upgrade will see the UPGRADINGPRODUCTCODE property. Which also means that the old version must be written with these conditions.

In the new version you can detect a major upgrade (as opposed to a fresh install on a clean machine) by testing the property you (or VS) specified in the Upgrade table.

eelisdotnet

eelisdotnet
  • Members
  • 24 posts

Posted 12 June 2006 - 12:58

The condition using the UPGRADINGPRODUCTCODE property doesn't work for me. I placed it in the old version as well as the upgrade version, in the condition for running a CA during installation. It was placed also in the ControlEvent table in order to skip the UI dialogs (doesn't work).

Another property that DID work for the CA condition is PREVIOUSVERSIONSINSTALLED. I checked for NOT PREVIOUSVERSIONSINSTALLED in order to run the CA during first installation only. This same property does NOT get evaluated in the ControlEvent table. The dialogs are still presented.

I tried to use another approach with a File search. If the settings file is found on the machine, I set a special property. When I use this property for the condition on the ControlEvent table, the dialogs are indeed skipped, and the process goes straight to the FolderForm. But.. an error dialog pop-up when I click the Next button of the FolderForm.
(from the log file):
QUOTE

Action 13:05:19: FolderForm. Dialog created
MSI © (F0:78) [13:05:19:231]: Note: 1: 2731 2: 0
MSI © (F0:78) [13:05:28:653]: PROPERTY CHANGE: Modifying TARGETDIR property. Its current value is 'C:\Program Files\TestingApp'. Its new value: 'F:\TestingApp\'.
MSI © (F0:78) [13:05:28:778]: Note: 1: 2707 2: TARGETDIR
MSI © (F0:78) [13:05:28:778]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2707:  Target paths not created.  No path exists for entry TARGETDIR in Directory Table
MSI © (F0:78) [13:05:28:778]: Note: 1: 2262 2: Error 3: -2147287038
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2707. The arguments are: TARGETDIR, ,


Is there any critical actions that take place between the custom dialogs prior to the FoderForm? If I place another custom dialog prior to FolderForm (like a splash dialog) and skip only the first custom dialog, then there's no problem. The text dialog is skipped to the splash and then goes smoothly to FolderForm and installation progress.

Note, I only test it now on a testing sample app. The real app. has 2 custom dialogs that have to be skipped on upgrade installation, and continue straight to FolderForm.

Hopefully this explanation is clear and understandable..

Thanks for any assistance

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 12 June 2006 - 22:15

QUOTE
The condition using the UPGRADINGPRODUCTCODE property doesn't work for me. I placed it in the old version as well as the upgrade version, in the condition for running a CA during installation. It was placed also in the ControlEvent table in order to skip the UI dialogs (doesn't work).
Uninstall of the old version doesn't display the UI of the old version anyway, so there#s no use in putting UPGRADINGPRODUCTCODE in the ControlEvent table. And it is not visible in the upgrading version.

QUOTE
Another property that DID work for the CA condition is PREVIOUSVERSIONSINSTALLED. I checked for NOT PREVIOUSVERSIONSINSTALLED in order to run the CA during first installation only. This same property does NOT get evaluated in the ControlEvent table. The dialogs are still presented.
Do you have the FindRelatedProducts Action action in your UI sequence before the dialogs are displayed? That's the action that sets the PREVIOUSVERSIONSINSTALLED property (if that's the property you have in the Upgrade table).

CODE
Action 13:05:19: FolderForm. Dialog created
MSI (c) (F0:78) [13:05:19:231]: Note: 1: 2731 2: 0

2731 = Selection Manager not initialized.
You should complete costing (the CostInitialize - CostFinalize sequence) before you start displaying dialogs.

eelisdotnet

eelisdotnet
  • Members
  • 24 posts

Posted 13 June 2006 - 11:20

The CostFinalize action is originally placed after the FolderForm (InstallUISequence). I relocated it before the WelcomeForm dialog. The implication was that after the ConfirmInstallForm, it returned to the FolderForm (with the new path entered), instead of moving to the ProgressForm. Clicking Next (again) on the FolderForm and ConfirmInstallForm did the job this time as expected.

Looks like the ConfirmInstallForm_NextArgs was empty so it returned to the FolderForm or else..

from the log file:
QUOTE

Action start 12:59:23: CostInitialize.
MSI © (A0:3C) [12:59:23:277]: Machine policy value 'MaxPatchCacheSize' is 10
MSI © (A0:3C) [12:59:23:292]: PROPERTY CHANGE: Adding ROOTDRIVE property. Its value is 'E:\'.
MSI © (A0:3C) [12:59:23:292]: PROPERTY CHANGE: Adding CostingComplete property. Its value is '0'.
Action ended 12:59:23: CostInitialize. Return value 1.
MSI © (A0:3C) [12:59:23:292]: Doing action: FileCost
Action 12:59:23: FileCost. Computing space requirements
Action start 12:59:23: FileCost.
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: RemoveFile 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: Registry 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: Class 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: Extension 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: TypeLib 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: IniFile 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: MoveFile 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: DuplicateFile 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: ReserveCost 3: -2147287038
Action ended 12:59:23: FileCost. Return value 1.
MSI © (A0:3C) [12:59:23:292]: Doing action: IsolateComponents
Action 12:59:23: IsolateComponents.
Action start 12:59:23: IsolateComponents.
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: BindImage 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: IsolatedComponent 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: Patch 3: -2147287038
Action ended 12:59:23: IsolateComponents. Return value 1.
MSI © (A0:3C) [12:59:23:292]: Doing action: CostFinalize
Action 12:59:23: CostFinalize. Computing space requirements
Action start 12:59:23: CostFinalize.
MSI © (A0:3C) [12:59:23:292]: PROPERTY CHANGE: Adding OutOfDiskSpace property. Its value is '0'.
MSI © (A0:3C) [12:59:23:292]: PROPERTY CHANGE: Adding OutOfNoRbDiskSpace property. Its value is '0'.
MSI © (A0:3C) [12:59:23:292]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceAvailable property. Its value is '0'.
MSI © (A0:3C) [12:59:23:292]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRequired property. Its value is '0'.
MSI © (A0:3C) [12:59:23:292]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRemaining property. Its value is '0'.
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: Patch 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: Condition 3: -2147287038
MSI © (A0:3C) [12:59:23:292]: PROPERTY CHANGE: Modifying TARGETDIR property. Its current value is 'C:\Program Files\SmallTestingApp'. Its new value: 'C:\Program Files\SmallTestingApp\'.
MSI © (A0:3C) [12:59:23:292]: Target path resolution complete. Dumping Directory table...
MSI © (A0:3C) [12:59:23:292]: Note: target paths subject to change (via custom actions or browsing)
MSI © (A0:3C) [12:59:23:292]: Dir (target): Key: TARGETDIR , Object: C:\Program Files\SmallTestingApp\
MSI © (A0:3C) [12:59:23:292]: Dir (target): Key: ProgramMenuFolder , Object: C:\Documents and Settings\John\Start Menu\Programs\
MSI © (A0:3C) [12:59:23:292]: Dir (target): Key: DesktopFolder , Object: C:\Documents and Settings\John\Desktop\
MSI © (A0:3C) [12:59:23:292]: Dir (target): Key: CommonFilesFolder , Object: C:\Program Files\Common Files\
MSI © (A0:3C) [12:59:23:292]: PROPERTY CHANGE: Adding INSTALLLEVEL property. Its value is '1'.
MSI © (A0:3C) [12:59:23:292]: Note: 1: 2262 2: RemoveFile 3: -2147287038
Action ended 12:59:23: CostFinalize. Return value 1.
MSI © (A0:3C) [12:59:23:292]: Doing action: WelcomeForm
Action 12:59:23: WelcomeForm.
Action start 12:59:23: WelcomeForm.
MSI © (A0:78) [12:59:23:292]: Note: 1: 2262 2: Error 3: -2147287038
Info 2898. VSI_MS_Sans_Serif13.0_0_0, MS Sans Serif, 0
MSI © (A0:78) [12:59:23:308]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line1 on dialog WelcomeForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: WelcomeForm, Line1, to the right
MSI © (A0:78) [12:59:23:308]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line2 on dialog WelcomeForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: WelcomeForm, Line2, to the right
MSI © (A0:78) [12:59:23:308]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control BannerBmp on dialog WelcomeForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: WelcomeForm, BannerBmp, to the right
MSI © (A0:78) [12:59:23:308]: Note: 1: 2262 2: Error 3: -2147287038
Info 2898. VsdDefaultUIFont.524F4245_5254_5341_4C45_534153783400, MS Sans Serif, 0
MSI © (A0:78) [12:59:23:308]: Note: 1: 2262 2: Error 3: -2147287038
Info 2898. VSI_MS_Sans_Serif16.0_1_0, MS Sans Serif, 0
Action 12:59:23: WelcomeForm. Dialog created
MSI © (A0:78) [12:59:23:370]: Note: 1: 2205 2:  3: _RemoveFilePath
MSI © (A0:78) [12:59:23:370]: Note: 1: 2262 2: DuplicateFile 3: -2147287038
MSI © (A0:78) [12:59:23:370]: Note: 1: 2262 2: ReserveCost 3: -2147287038
MSI © (A0:78) [12:59:23:370]: PROPERTY CHANGE: Modifying CostingComplete property. Its current value is '0'. Its new value: '1'.
MSI © (A0:78) [12:59:23:370]: Note: 1: 2262 2: BindImage 3: -2147287038
MSI © (A0:78) [12:59:23:370]: Note: 1: 2262 2: ProgId 3: -2147287038
MSI © (A0:78) [12:59:23:370]: Note: 1: 2262 2: PublishComponent 3: -2147287038
MSI © (A0:78) [12:59:23:370]: Note: 1: 2262 2: SelfReg 3: -2147287038
MSI © (A0:78) [12:59:23:370]: Note: 1: 2262 2: Extension 3: -2147287038
MSI © (A0:78) [12:59:23:370]: Note: 1: 2262 2: Font 3: -2147287038
MSI © (A0:78) [12:59:23:370]: Note: 1: 2262 2: Class 3: -2147287038
MSI © (A0:78) [12:59:23:370]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:25:527]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line1 on dialog FolderForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FolderForm, Line1, to the right
MSI © (A0:78) [12:59:25:527]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line2 on dialog FolderForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FolderForm, Line2, to the right
MSI © (A0:78) [12:59:25:527]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control BannerBmp on dialog FolderForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FolderForm, BannerBmp, to the right
MSI © (A0:78) [12:59:25:527]: Note: 1: 2262 2: Error 3: -2147287038
Info 2898. VSI_MS_Shell_Dlg13.0_0_0, MS Shell Dlg, 0
Action 12:59:25: FolderForm. Dialog created
MSI © (A0:78) [12:59:26:027]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:26:527]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:27:027]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:27:527]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:28:027]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:28:527]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:29:027]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:29:527]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:30:027]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:30:527]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:30:527]: PROPERTY CHANGE: Modifying TARGETDIR property. Its current value is 'C:\Program Files\SmallTestingApp\'. Its new value: 'F:\SmallTestingApp\'.
MSI © (A0:78) [12:59:30:605]: Note: 1: 2335 2: C:\Program Files\SmallTestingApp\ 3: C:\Documents and Settings\John\Start Menu\Programs\
MSI © (A0:78) [12:59:30:605]: Note: 1: 2335 2: C:\Program Files\SmallTestingApp\ 3: C:\Documents and Settings\John\Desktop\
MSI © (A0:78) [12:59:30:605]: Note: 1: 2335 2: C:\Program Files\SmallTestingApp\ 3: C:\Program Files\Common Files\
MSI © (A0:78) [12:59:30:605]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:30:605]: PROPERTY CHANGE: Adding ALLUSERS property. Its value is '2'.
MSI © (A0:78) [12:59:30:605]: Doing action: FindRelatedProducts
Action 12:59:30: FindRelatedProducts. Searching for related applications
Action start 12:59:30: FindRelatedProducts.
FindRelatedProducts: Found application: {AA588D9C-2C5C-47E4-84AE-8732A99FBA62}
MSI © (A0:78) [12:59:30:605]: PROPERTY CHANGE: Adding PREVIOUSVERSIONSINSTALLED property. Its value is '{AA588D9C-2C5C-47E4-84AE-8732A99FBA62}'.
Action ended 12:59:30: FindRelatedProducts. Return value 1.
MSI © (A0:78) [12:59:30:620]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line1 on dialog ConfirmInstallForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: ConfirmInstallForm, Line1, to the right
MSI © (A0:78) [12:59:30:620]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line2 on dialog ConfirmInstallForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: ConfirmInstallForm, Line2, to the right
MSI © (A0:78) [12:59:30:620]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control BannerBmp on dialog ConfirmInstallForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: ConfirmInstallForm, BannerBmp, to the right
Action 12:59:30: ConfirmInstallForm. Dialog created
Action ended 12:59:31: WelcomeForm. Return value 1.
MSI © (A0:3C) [12:59:31:261]: Skipping action: ResumeForm (condition is false)
MSI © (A0:3C) [12:59:31:261]: Skipping action: MaintenanceForm (condition is false)
MSI © (A0:3C) [12:59:31:261]: Doing action: FolderForm
Action 12:59:31: FolderForm.
Action start 12:59:31: FolderForm.
MSI © (A0:78) [12:59:31:261]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line1 on dialog FolderForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FolderForm, Line1, to the right
MSI © (A0:78) [12:59:31:261]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line2 on dialog FolderForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FolderForm, Line2, to the right
MSI © (A0:78) [12:59:31:261]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control BannerBmp on dialog FolderForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FolderForm, BannerBmp, to the right
Action 12:59:31: FolderForm. Dialog created
MSI © (A0:78) [12:59:31:761]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:32:261]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:32:761]: Note: 1: 2727 2: 
MSI © (A0:78) [12:59:32:792]: Doing action: FindRelatedProducts
Action 12:59:32: FindRelatedProducts. Searching for related applications
Action start 12:59:32: FindRelatedProducts.
FindRelatedProducts: Found application: {AA588D9C-2C5C-47E4-84AE-8732A99FBA62}
MSI © (A0:78) [12:59:32:792]: PROPERTY CHANGE: Modifying PREVIOUSVERSIONSINSTALLED property. Its current value is '{AA588D9C-2C5C-47E4-84AE-8732A99FBA62}'. Its new value: '{AA588D9C-2C5C-47E4-84AE-8732A99FBA62};{AA588D9C-2C5C-47E4-84AE-8732A99FBA62}'.
Action ended 12:59:32: FindRelatedProducts. Return value 1.
MSI © (A0:78) [12:59:32:792]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line1 on dialog ConfirmInstallForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: ConfirmInstallForm, Line1, to the right
MSI © (A0:78) [12:59:32:792]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line2 on dialog ConfirmInstallForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: ConfirmInstallForm, Line2, to the right
MSI © (A0:78) [12:59:32:808]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control BannerBmp on dialog ConfirmInstallForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: ConfirmInstallForm, BannerBmp, to the right
Action 12:59:32: ConfirmInstallForm. Dialog created
Action ended 12:59:33: FolderForm. Return value 1.
MSI © (A0:3C) [12:59:33:542]: Doing action: ProgressForm
Action 12:59:33: ProgressForm.
Action start 12:59:33: ProgressForm.
MSI © (A0:78) [12:59:33:542]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line1 on dialog ProgressForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: ProgressForm, Line1, to the right
MSI © (A0:78) [12:59:33:542]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control Line2 on dialog ProgressForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: ProgressForm, Line2, to the right
MSI © (A0:78) [12:59:33:558]: Note: 1: 2262 2: Error 3: -2147287038
DEBUG: Error 2826:  Control BannerBmp on dialog ProgressForm extends beyond the boundaries of the dialog to the right by 3 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: ProgressForm, BannerBmp, to the right
Action 12:59:33: ProgressForm. Dialog created
Action ended 12:59:33: ProgressForm. Return value 1.


Hopefully it helps..

and thanks a lot, Stefan!

eelisdotnet

eelisdotnet
  • Members
  • 24 posts

Posted 19 June 2006 - 13:07

The issue seems to be solved... thanks to Stefan and the Windows Installer Documentation.

The FindRelatedProducts action and ALLUSERS property were originally (by VS) called during the NextButton event on FolderForm (ControlEvent table).

My solution on the ControlEvent table:
1. I relocated ALLUSERS property setting and FindRelatedProducts action to be called on the NextButton event of the preceding dialog to the one that you want to skip. in my case, WelcomeForm dialog.
2. The order column of ALLUSERS should be less then FindRelatedProducts, and FindRelatedProducts should be less then the record holding the NewDialog event (the record with the property of the next dialog. 'WelcomeForm_NextArgs' in my case).
3. I appended to the condition of the record holding the NewDialog event the following condition: 'NOT PREVIOUSVERSIONSINSTALLED'.
So, in my example it looks like: 'WelcomeForm_NextArgs<>"" AND NOT PREVIOUSVERSIONSINSTALLED'
4. I inserted new record (ControlEvent table):
Dialog_ = the dialog precedes the skipped dialog (WelcomeForm in my case)
Control_ = NextButton
Event = EndDialog
Argument = Return
Condition = PREVIOUSVERSIONSINSTALLED (check that it is in the Upgrade table)
Order = 4 (the last one)

On Property table I set the FolderForm_AllUsers property to 'ALL'

Descriptive explanation:
For this example installation package I have 2 custom dialogs to enter user configured settings. These dialogs should be presented only during first clean installation, not during upgrade. The dialogs are placed between WelcomeForm and FolderForm (Installation Folder). The installation is only per-machine (ALL).

When the Next button on WelcomeForm is clicked, ALLUSERS is first set to 2 (installs for all users if the user has enough administrative privileges). Then the FindRelatedProducts is called to run through each record of the Upgrade table and check for products installed on the system. In case it detects a correspondence between the upgrade information and an installed product, it appends the product code to the property specified in the ActionProperty column of the Upgrade table (that would be 'PREVIOUSVERSIONSINSTALLED' in my example).
If the 'PREVIOUSVERSIONSINSTALLED' is set, the condition of the NewDialog event will be evaluated to False. Next in order is the new inserted record that would be evaluated to True, causing the EndDialog and return to the InstallUISequence table, where the installation continues with the CostFinalize and FolderForm (again.. in my example that was generated by VS).

Well, the dialogs are skipped as required and all configuration settings are set only once during first clean installation.

Please correct me if I'm wrong with my settings and description..

Thanks!

waqas

waqas
  • Members
  • 1 posts

Posted 25 September 2006 - 07:35

dear eelisdotnet,
I am required to do the similar sort of task you did. Please let me know the solution for
"The implication was that after the ConfirmInstallForm, it returned to the FolderForm (with the new path entered), instead of moving to the ProgressForm."
Thanx