could anyone help me
i need a nsis script which sets the system date to 5 feb 2008 (date only not the time) the executes a program then sets the system date back to the current date.
also could anyone guide me to a guide on advance features on nsis as i already know the basic and am already creating portable apps for myself.
thanks in advance
you could correspond with me through email (tipra [dot] wicked [at] gmail [dot] com) or could post in this forum itself
many thanks
Take a look at this: http://www.nirsoft.net/utils/run_as_date.html
cowsay Moo
cowthink 'Dude, why are you staring at me.'
thank you very much that software worked out perfectly but now the problem is i have to change the time in the software every time i launch it
so i think i would really like to have a nsis script
*edit*
sorry about that i just figured out how to do it using runasdate just read the help manual carefully thanks for your help
*edit*
actually this is what my launcher does
1>it copies some files to My Documents
2>Runs the program thru runasdate.exe
3>to make it fully portable it should copy back the contents from documents to the pendrive so this is what i have written
CopyFiles /SILENT "$EXEDIR\Data\xyz" "$DOCUMENTS\xyz"
Sleep 100
ExecWait '"$EXEDIR\Manager\RunAsDate.exe" 05/02/2008 "$EXEDIR\Manager\xyz.exe"'
CopyFiles /SILENT "$DOCUMENTS\xyz" "$EXEDIR\Data\xyz"
Sleep 100
RMDir /r "$DOCUMENTS\xyz"
seeing my code it is supposed to be correct.
but the obvious flaw is that runasdate.exe is only there for a split second and then xyz.exe takes over.
therefore the files get deleted for my documents and my program(xyz.exe) cannot access those.
so what i want is that the launcher monitors xyz.exe in the task manager and execute the following code after i quit xyz.exe
CopyFiles /SILENT "$DOCUMENTS\xyz" "$EXEDIR\Data\xyz"
Sleep 100
RMDir /r "$DOCUMENTS\xyz"
Look at the process plugin.
http://nsis.sourceforge.net/Processes_plug-in
cowsay Moo
cowthink 'Dude, why are you staring at me.'
You'll have to use the FindProcDLL to test for the existence of xyz.exe in a loop -
You'll need the FindProc plugin for this to work.
but
Invalid command: FindProcDLL::FindProc
You need the NSIS FindProc plugin.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
wraithdu
just change this
StrCmp $R0 "0" 0 EndEXE ; 0 = process exists
to
StrCmp $R0 "0" EndEXE 0 ; 0 = process exists
then it worked
My bad, I got confused with another plugin.
0 = process does NOT exist
1 = process exists