Archive: NSI Scripts


NSI Scripts
Hi,

Need some help here.
I have a folder named c:\data and inside this folder I got 4 executable files.
How can I use NSI script to rename all files inside c:\data to format as below :
c:\data\pumpData.exe<date>
c:\data\pumpExt.exe<date>
c:\data\pumpRaw.exe<date>
c:\data\pumpImages.exe<date>

<date> is todays date.

Then after above process have been completed, how can I copy new files to c:\data\
from zip files. I only know how to copy files to c:\data but don't have ideas on how to
automatically rename files inside c:\data.

Regards,
titanium0203;)


It's all in the manual:
http://nsis.sourceforge.net/Docs/AppendixE.html#E.1.6
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.1.6

As for unpacking zip files, there are several unzip plugins.


Hi,

I'm new with this NSIS, please guide me, what should I do first. Thanks.

Thanks


Hi MSG,

Another things, I've try link http://nsis.sourceforge.net/Uninstal...pied_Shortcuts but unable to compile it correctly.

I've copied dll files to the respective directory and same goes to nsh file.

please help. Thanks


...what do moved shortcuts have to do with renaming some files? Just use what I gave you: The rename command.

All the information you need is in those two links. The Rename command is self-explanatory. The GetTime macro allows you to get the current date, and can be understood by looking at the examples supplied there.