Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# wix
Hi,
 
i have a wxs file and i am calling one custom action written in c#..
and i am calling that custom action from installuisequence with the before launchconditions tag but i am getting error while installing that setup with error number 2762 etc..
 

If you need any other info let me know ../
 

Regards,
Amit Gaba
Posted 2-Oct-12 23:14pm
Comments
Achha Insan at 3-Oct-12 5:32am
   
nothing is impossible. you can do it.
Member 7217874 at 3-Oct-12 5:35am
   
but it is giving me error and i got stopped on this ... can you give me some direction ??
Member 7217874 at 3-Oct-12 5:40am
   
if i give execute as deferred then it shows me the error 2762 and if i give execute as immediate then installation comes to a prematured finish dialog box and got finished unsucessfully..

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

From http://msdn.microsoft.com/en-us/library/windows/desktop/aa372835%28v=vs.85%29.aspx[^]
 
2762
 
	
 
Cannot write script record. Transaction not started.
	
 
The InstallExecuteSequence may have been authored incorrectly. Actions that change the system must be sequenced between the InstallInitialize and InstallFinalize actions. Perform package validation and check for ICE77. 
 
You shouldn't do anything before launch conditions.
A typical installation process is:
  1. Test launch conditions (can the software be installed at all)?
  2. Gather information from the user, if relevant.
  3. Do things to the machine (copy files, modify the registry, add environment variables, create shortcuts...). These actions may be executed in a separate ('server') MSIEXEC.EXE process, that runs with elevated authority.
  4. Commit.
 
Depending on what your custom action does, you should sequence it in the right position.
 
Hope this helps,
Pablo.
  Permalink  
Comments
Member 7217874 at 3-Oct-12 5:52am
   
i have UI dialog in my installation and on the first step i am calling my custom action from InstallUISequence before my WelcomeDialog appears. But now it is just coming directly to the finish dialog.
Am i going in right direction?
Pablo Aliskevicius at 3-Oct-12 15:00pm
   
It all depends on what your custom action does. If it does not modify the system in any way (e.g., if it checks whether a given .ini file is present, and then updates MSI properties based on its contents) you can schedule it to run whenever you want.
Personally, I steer clear from any custom actions that have side effects: I use custom actions to update properties only, and regular actions based on those properties for everything else.
 
You can use ORCA to see the actual sequences in your MSI file. See http://blogs.msdn.com/b/astebner/archive/2004/07/12/180792.aspx
 
Hope this helps,
Pablo.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Kornfeld Eliyahu Peter 430
1 OriginalGriff 299
2 Nelek 115
3 Sergey Alexandrovich Kryukov 99
4 Gihan Liyanage 99
0 Kornfeld Eliyahu Peter 420
1 OriginalGriff 140
2 Gihan Liyanage 99
3 Nelek 65
4 sankarsan parida 65


Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 3 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100