You are here

Is there a quick and easy way...

7 posts / 0 new
Last post
jeffm
Offline
Last seen: 14 years 11 months ago
Joined: 2007-12-13 01:58
Is there a quick and easy way...

Is there a quick and easy way to create a launcher for an application? The application itself does not require an install and writes nothing to the registry. The issue I have is that the application has more than one .exe and I don't want them all to show up in the PAM.

Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
its easy if

you only need a launcher for the exe without doing anything with files/registry keys.
I once did one so I can launch 7.zip from the root of my drive:

OutFile "7-Zip.exe"
SilentInstall silent
Icon "\PortableApps\7-ZipPortable\Other\7-ZipPortableSource\7-ZipPortable.ico"
Section
Exec "$EXEDIR\PortableApps\7-ZipPortable\7-ZipPortable.exe"
SectionEnd

If you know a little about compiling and/or nsis you can easily adapt it.
If you dont I'll elaborate more.

The basics are:
Download the nsis compiler from http://usb.smithtech.us/apps/index.php
adapt the paths to the exe and the icon
compile it.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

jeffm
Offline
Last seen: 14 years 11 months ago
Joined: 2007-12-13 01:58
I've never...

I've never used NSIS before, so if you could elaborate some, I would definatly appreciate it.

Simeon
Simeon's picture
Offline
Last seen: 9 years 6 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
ok

the easiest way is to do it without the icon:

OutFile "The Name of your App.exe"
SilentInstall silent
Section
Exec "$EXEDIR\Path to the exe your want to launch.exe"
SectionEnd

open an empty txt file, copy it there and change name and path.
save it as appname.nsi.
download nsis portable and run it.
open the appname.nsi with nsis portable.
It wil automatically compile it and put the exe in to same folder the nsi script file is in.
Thats it.
Hope you get it done Smile

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

jeffm
Offline
Last seen: 14 years 11 months ago
Joined: 2007-12-13 01:58
Thanks

I got it to work for me. Now to play with NSIS more to learn about what it can do.

rab040ma
Offline
Last seen: 3 days 1 hour ago
Joined: 2007-08-27 13:35
If it is ever to run on

If it is ever to run on Vista, you should add

RequestExecutionLevel user

I wouldn't be surprised to learn that there are other little tweaks that can make it work better.

Once you get a barebones nsi launcher, it can be fun to add stuff to it. See the article I did for StartPortableApps.nsi, with emendations from Ryan. You could use some of that as a template for including information or an icon with the launcher. Or just comment out or delete all the extraneous stuff you aren't interested in.

Once you get NSIS installed (and plugins added, if needed) it compiles a script quickly and with informative error messages.

MC

jeffm
Offline
Last seen: 14 years 11 months ago
Joined: 2007-12-13 01:58
I'll read through

the article you posted. It can only help. Wink

Log in or register to post comments