You are here

Using NSIS to stop file in All Users folder

13 posts / 0 new
Last post
InsideLine
Offline
Last seen: 13 years 11 months ago
Joined: 2007-04-02 18:12
Using NSIS to stop file in All Users folder

Hi,

I'm working on developing a laucnher for Adobe Photoshop CS2, suing Klonk's awesome PAT. I've taken care of the CS2 reg keys no problem, but I can't figure out how to catch a .dat file stored in a folder in the Documents and Settings/All Users/. Can anyone shed some light on this please?

Thanks in advance.

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 1 year 10 months ago
Joined: 2007-01-12 19:22
This file is necessary to

This file is necessary to "activation" and I think you'll need it.

InsideLine
Offline
Last seen: 13 years 11 months ago
Joined: 2007-04-02 18:12
.

Maybe I didn't explain well enough before. I know it's very necessary, and I'm looking for help on how to insert this file when Photoshop launches and remove it when it closes.

====
"Don't look now, but there's one too many persons in this room and I think it's you" - Groucho Marx

"Don't look now, but there's one too many persons in this room and I think it's you" - Groucho Marx

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 1 year 10 months ago
Joined: 2007-01-12 19:22
.

You can use on start:

Rename "C:\anotherplace\file.dat" "C:\anotherplace\file.bkp"
Rename "$EXEDIR\file.dat" "C:\anotherplace\file.dat"

and on shutdown:

Rename "C:\anotherplace\file.dat" "$EXEDIR\file.dat"
Rename "C:\anotherplace\file.bkp" "C:\anotherplace\file.dat"

it will save host file with bkp extension and replace with portable file
after it will save portable file and restore host backup...

sorry for my english Wink

InsideLine
Offline
Last seen: 13 years 11 months ago
Joined: 2007-04-02 18:12
ok

ok that didn't quite work but I found another way to do it. Thanks for th input.
====
"Don't look now, but there's one too many persons in this room and I think it's you" - Groucho Marx

"Don't look now, but there's one too many persons in this room and I think it's you" - Groucho Marx

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 1 year 10 months ago
Joined: 2007-01-12 19:22
I'm interested to make

I'm interested to make Photoshop Portable too, if you could, send me the launcher when you finish it Wink

InsideLine
Offline
Last seen: 13 years 11 months ago
Joined: 2007-04-02 18:12
good

OK, just give me your email and I'll send it to you. That goes for everyone else as well.
====
"Don't look now, but there's one too many persons in this room and I think it's you" - Groucho Marx

"Don't look now, but there's one too many persons in this room and I think it's you" - Groucho Marx

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 1 year 10 months ago
Joined: 2007-01-12 19:22
my email is:
Klonk
Offline
Last seen: 12 years 2 weeks ago
Joined: 2006-04-21 03:08
Just for interest

How did you do it?

I would do it that way:

SetShellVarContext all
StrCpy $ALLDOCUMENTS $DOCUMENTS
SetShellVarContext user
InsideLine
Offline
Last seen: 13 years 11 months ago
Joined: 2007-04-02 18:12
.

Actually I just used the !DEFINE SETTINGSFILES in your APT 1.7 script.
====
"Don't look now, but there's one too many persons in this room and I think it's you" - Groucho Marx

"Don't look now, but there's one too many persons in this room and I think it's you" - Groucho Marx

Klonk
Offline
Last seen: 12 years 2 weeks ago
Joined: 2006-04-21 03:08
Ah I see,

but remember it then works only on an english version of Windows...

InsideLine
Offline
Last seen: 13 years 11 months ago
Joined: 2007-04-02 18:12
I see.

where then would I put the code you mentioned into the NSI script file?

====
"Don't look now, but there's one too many persons in this room and I think it's you" - Groucho Marx

"Don't look now, but there's one too many persons in this room and I think it's you" - Groucho Marx

nowashburn
Offline
Last seen: 16 years 6 months ago
Joined: 2007-09-25 17:00
New Person here

InsideLine,

I am new to making portableapps but in very interested in it and am trying my first attempt. My main reason for learning this is to get some apps to run better on my ubuntu system with WINE. for instance, see this : http://youralternative.blogspot.com/2007/06/photoshop-cs2-on-linux-in-3-... . PhotoshopCS2 is running perfectly on my system thanks to WINE and portableapps! (a paid for version of course). I am trying to do the same thing with IllustratorCS2 and am a bit stumped. I noticed that with the portable version of photoshop in the link above, there is no registry file included or .dat file which is for activation and the program seems to run without them. I followed the instructions on this site and other sites on how to make portableapps and all of them seem to tell me to manually move the files and import the registry key. I would like to make illustratorCS2 TRULY portable like the PhotoshopCS2 launcher version is. Any Ideas? thanks!

Log in or register to post comments