I have an App that is not portable, but it is self contained in a folder... it's not portable because it leaves a *.conf file in Docs&sets/user/AppData/... even copying that file into the App folder it creates the conf file again.
My question is... How can I make a launcher to 1) read the conf file from the App folder, copy it into the AppData folder, and launch the App... and 2) close the App, copy the conf file into the App folder and delete the AppData file???
I know it can be done... in fact is the way most PortableApps works with the registry... but I just don't know how to do it...
I already checked the Portable Application Template and understood nothing...
Thanks in advance...
Aciago.-
I use this
!define !define SETTINGSFILES "$APPDATA\Media Player Classic\default.mpcpl"
and then in your installer section add this
System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("USERPROFILE", "$EXEDIR\Data").r0'
StrCpy "$R0" "${SETTINGSFILES}"
Make sure you do this before executing the program though.
or you can try (Don't use the one on top if your using this one)
System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("YOURAPP_HOME", "$EXEDIR\Data\settings").r0'
Both ways work for me (Second one works for some apps not all though. in that case use the first solution)
-----------------------------
"I don't fear Computers. I fear the lack of them" Isaac Asimov
My Personal Blog in the making at a new address thibeaz.com
your friendly neighbourhood moderator Zach Thibeau
And I figured it might now work for all apps.
What are the things in the NSIS script that need to be changed and the things that need to be left alone.
Either need to copy/rename the files (knew that) or I think set the folder "AppData" as your App folder. I should be able to modfy one of John launchers for you. And if it's open source, package it all up.
Give me and e-mail at:
monopurpura(at)gmail(dot)com
I'll be home later tonight.
_______________________________________________
It's kinda scary when my desktop is messier than my room...
If he can't do it by any chance, email me at cubegames[at]gmail.com or ryanmccue[at]cubegames.net (Not as though I doubt you Patrick
)
----
Ryan McCue.
Blog.
So all that Airbus-delay trouble over here in Europe is because of YOU!
Simeon.
"If you're not part of the solution, you're part of the precipitate."
Haha, if it doesn't have the command line function, I still now how to make it copy file, GOSH!
_______________________________________________
It's kinda scary when my desktop is messier than my room...
I try and try but can't make it works... I'm very confused with this stuff...
So, have some patience, I'm going to send the info to you by mail...
------------------
I have no signature again...
If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report
Mono Purpura?
Can I ask why that name for a mail? Do you know what that mean? Do you speak Spanish?
Mail sent...
------------------
I have no signature again...
If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report
But I like purple monkeys and those are two words from the limited vocabulary of Spanish I have. I have a couple friends that live in Mexico, they teach me a bit over IM.
_______________________________________________
It's kinda scary when my desktop is messier than my room...
------------------
I have no signature again...
If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report
I tried your launcher yesterday... it looks like it works fine (I like the launch screen very much) but it doesn't keep my settings, so I think that it's not saving the conf file when exiting the App...
Thanks god that you "have some patience" because you are going to need it with me...
------------------
I have no signature again...
If a packet hits a pocket on a socket on a port,
and the bus is interrupted as a very last resort,
and the address of the memory makes your floppy disk abort,
then the socket packet pocket has an error to report
Just contacted you by e-mail, I think I know what it was, I'm looking into it.
_______________________________________________
It's kinda scary when my desktop is messier than my room...