You are here

NSIS Expert help needed, please

6 posts / 0 new
Last post
chezduong
Offline
Last seen: 6 months 3 weeks ago
Joined: 2006-12-06 04:01
NSIS Expert help needed, please

Hello all. A quick question for all the NSIS experts out there. I have searched, but with no luck.

I would like to create a NSIS launcher which will:

1/ Bundle the 5 Truecrypt (traveler mode) files within the launcher,
2/ Extract the 5 Truecrypt files to the $Temp directory,
3/ Launch Truecrypt.exe with standard/predetermined Truecrypt command line variables,
4/ Wait for the Truecrypt drive to be dismounted, and
5/ Delete the Truecrypt temporary files in the $Temp directory.

I think that I can do 3 to 5 myself based looking at the launchers on PortableApps.com, but am having lots of problems with 1 and 2.

Can anyone spare me 15 minutes? Thanks in advance.

TaffinFoxcroft
TaffinFoxcroft's picture
Offline
Last seen: 11 years 2 weeks ago
Developer
Joined: 2006-12-14 17:24
look into the Files and

look into the Files and OutDir commands.

But there’s no sense crying over every mistake,
You just keep on trying till you run out of cake.

digitxp
digitxp's picture
Offline
Last seen: 13 years 3 months ago
Joined: 2007-11-03 18:33
Step 1 and 2 code:
SetOutPath $TEMP
File ${TRUECRYPTFILES}

where ${TRUECRYPTFILES} is a folder containing all the true crypt files.
Simple as that.

Insert original signature here with Greasemonkey Script.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2007-04-15 21:08
Use a subdirectory

In the SetOutPath command, use a subdirectory (e.g. as "SetOutPath $TEMP\TrueCryptPortable"). This will prevent muddles between programs.

Other than that, digitxp's right - that's how you do it.
Then just your ExecWait should do it (waiting for it to finish).

Have fun!

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

digitxp
digitxp's picture
Offline
Last seen: 13 years 3 months ago
Joined: 2007-11-03 18:33
Oh

I believe Nathan9222 made a script for just this purpose.
He turned it into a shareware packager somewhat like thinstall (actually I think it was thinstalled).

Insert original signature here with Greasemonkey Script.

chezduong
Offline
Last seen: 6 months 3 weeks ago
Joined: 2006-12-06 04:01
Thank you and Chris Morgan

Thank you and Chris Morgan very much.

Log in or register to post comments