Run file instead of exe in NSIS?Submitted by someoneabc on April 19, 2007 - 3:37pm
Hey all, Here's my current code: Name "Myname" OutFile "MyOutput.exe" Caption "Mycaption" Icon "Myicon.ico" CRCCheck On WindowIcon Off SilentInstall Silent AutoCloseWindow True RequestExecutionLevel user Section "Main" ;=== Show the splash screen while processing registry entries InitPluginsDir File /oname=$PLUGINSDIR\splash.jpg "MySplashScreen.jpg" newadvsplash::show /NOUNLOAD 4000 200 0 -1 /L $PLUGINSDIR\splash.jpg ExecWait "someprog.exe" newadvsplash::wait SectionEnd
[Moderator RM: Use <pre> instead of <code> for code blocks. I fixed for you] ( categories: )
|

Shell
It's shell run or something similar to that. The issue, of course, is that the given OS must have a file association for MDB (most of which won't as most PCs don't have access installed).
Live with purpose.
Fine if it doesn't
I'm just making this for one comp, I won't put it on any without access...thing is, I'd like to be able to do this without having to make a separate file launcher exe. BTW, it needs to work on '98. Thanks
You can always use the thing
You can always use the thing that's the best and the worst in NSIS. Shell plugin.
The best - you can write everything in it.
The worst - it's often faster to rewrite your launcher to another language than to us e it.
"Those people who think they know everything are a great annoyance to those of us who do." Asimov
ExecShell
From the "Instructions" page of the NSIS User Manual:
4.9 Instructions 4.9.1 Basic Instructions {...} 4.9.1.3 ExecShell action command [parameters] [SW_SHOWNORMAL | SW_SHOWMAXIMIZED | SW_SHOWMINIMIZED | SW_HIDE] Execute the specified program using ShellExecute. Note that action is usually "open", "print", etc, but can be an empty string to use the default action. Parameters and the show type are optional. $OUTDIR is used for the working directory. The error flag is set if the process could not be launched. ExecShell "open" "http://nsis.sf.net/" ExecShell "open" "$INSTDIR\readme.txt" ExecShell "print" "$INSTDIR\readme.txt"I hope that that's what you want.
_______________________________________________
Chris Morgan
"I would talk in iambic pentameter if it were easier."
— Howard Nemerov
Chris Morgan (formerly chrism) :-)
Religion = Christian\Christadelphian
Likes_Swearing = false
Portable_App_Developer = true
Thanks...
Actually, I found out about that yesterday, and it's just what I want, I just forgot to post about it. BTW, where is this 'NSIS User Manual'??