Loading
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?

  • Community Manager (Flexera Software)

    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.)
    Expand Post

Loading
Custom Actions.