cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tnand53
Level 5

Custom Actions.

I am creating a text file and the In-Script Execution is Immediate. The file is getting created .
But when i am writing a custom action to delete a file and In-script execution is "Commit", it gives a error:Error:2762 Cannot Write Script Record. Transaction not started.

Can Any one help me on this?
Labels (1)
0 Kudos
(3) Replies
RobertDickau
Flexera Alumni

That means a deferred action (commit actions are a type of deferred action) was placed outside the valid range of between InstallInitialize and InstallFinalize. (Searching the MSI help for "2762" gives a bit more information.) Perhaps try moving the action?

(As an aside, an action that modifies the system, such as creating a file, should generally be scheduled for deferred execution.)
0 Kudos
Christopher_Pai
Level 16

As a further aside, the following is required reading.

http://www.installsite.org/pages/en/isnews/200108/index.htm

Don't worry if it takes a few reads to understand it, I read it many times before it clicked.
0 Kudos
tnand53
Level 5

Thanks Christopher
0 Kudos