cjs
25th March 2003 22:32 UTC
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
25th March 2003 22:39 UTC
Function ".onInstSuccess"
Exec: "runapp1.exe"
Exec: "runapp2.exe"
FunctionEnd
Helps?
PS: I didn't try it ...but it should work
cjs
25th March 2003 22:44 UTC
Ok, that compiled! :)
But I can't get it to execute the MDB file
cjs
25th March 2003 22:52 UTC
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
25th March 2003 22:54 UTC
Function .onInstSuccess
exec MDAC_TYP.EXE ; Launch MDAC.
exec "msaccess micad03.mdb"
FunctionEnd
still no-go.. that compiled but didn't run.
Joel
25th March 2003 22:54 UTC
Function ".onInstSuccess"
Exec "$INSTDIR/MICAD02.mdb"
Exec "$INSTDIR/MICAD03.mdb"
FunctionEnd
PS: What's the ext. MDB for? :)
cjs
25th March 2003 22:56 UTC
Microsoft DataBase
Microsoft access program.
Joel
25th March 2003 22:57 UTC
ok :D, it works!
cjs
25th March 2003 23:33 UTC
no, it compiled but didn't run.:cry:
flizebogen
26th March 2003 07:26 UTC
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