Skip to content
⌘ NSIS Forum Archive

Need to execute TWO programs after install. can't use .oninitsucess twice

10 posts

cjs#

Need to execute TWO programs after install. can't use .oninitsucess twice

The first I need to run is the MDAC 2.7 libraries.

The second I need run after everything is installed is our program\MDB file. MICAD03.mdb

here is the output.

Function: ".onInstSuccess"
Exec: "MDAC_TYP.EXE" (->)
FunctionEnd
Function: ".onInstSuccess"
Error: Function named ".onInstSuccess" already exists.


I tried to use

Section "MICAD"
exec $INSTDIR/MICAD03.mdb
Sectionend

to do the job but it didn't work either.

any help?
Joel#

Function ".onInstSuccess"
Exec: "runapp1.exe"
Exec: "runapp2.exe"
FunctionEnd
Helps?
PS: I didn't try it ...but it should work
cjs#
this or this didn't work either 🙁

Function .onInstSuccess
exec MDAC_TYP.EXE ; Launch MDAC.
exec $SMPROGRAMS\micad_test\micad_test (micad).lnk
FunctionEnd

Function .onInstSuccess
exec MDAC_TYP.EXE ; Launch MDAC.
exec MICAD03.mdb
FunctionEnd

it's supposed to open with MSACCESS
cjs#
Function .onInstSuccess
exec MDAC_TYP.EXE ; Launch MDAC.
exec "msaccess micad03.mdb"
FunctionEnd

still no-go.. that compiled but didn't run.
Joel#

Function ".onInstSuccess"
Exec "$INSTDIR/MICAD02.mdb"
Exec "$INSTDIR/MICAD03.mdb"
FunctionEnd
PS: What's the ext. MDB for? 🙂
flizebogen#
you can use shellExec

ExecShell "open" "[pathto]\mdbfile.mdb"

change open if you want to use an other action like print or something.

ExecShell Syntax