cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Vladimir12
Level 4

Error during sqlcms.exe custom action

Hi.

I work in Installshield 2014. use InstallScript MSI project.

I'l try to run an sqlcmd.exe, during my installation. but have an error:

There is a problem with the Windows Installer package. Unexpected termination of a program that is part of the installation. Please contact support or the package vendor. NewCustomAction1, location: C: \ Windows \ Installer \ MSI64D4.tmp, command: -S ANDRUKHOV...

You can see it on the sceeshot, i addet to this tiket. can you tell, what i did wrong?

Labels (1)
0 Kudos
(2) Replies
shunt
Revenera Moderator Revenera Moderator
Revenera Moderator

Its possible that the file is not yet available at the point you are running the custom action in the installation sequence.

There are two things you can try:

1. Change the In-script Execution to "deferred"

or,

2. Move the Immediate Execution custom action to after "InstallFinalize"

If niether of these work, does the command that you are using work outside of the installation context? For example manually run that command against SQLCMD.EXE

0 Kudos

It seems like i run this command, before i set my Data base.

I set it on Installed FeatureEvent rul.

How can i set the time of my sqlcmd custom action after all other  FeatureEvents are done?

0 Kudos