Old 19th January 2019, 20:24   #1
Gluck
Member
 
Join Date: Apr 2018
Posts: 98
Relative path

Hi,

Now that I have resolved the registry problems, I'm trying to portabilize NisEdit.

It stores the Makensis.exe position in a registry key:

[HKEY_CURRENT_USER\Software\HM Software\NIS Edit\Profiles\Default]
"Compiler"="C:\\Users\\User\\Desktop\\NisEdit\\Bin\\NSIS\\makensis.exe"
"HelpFile"="C:\\Users\\User\\Desktop\\NisEdit\\Bin\\NSIS\\NSIS.chm"

The problem is it refers to an absolute path!

How can I traduce "$EXEDIR\Bin\NSIS\Makensis.exe" in the absolute path?

Thanks.
Gluck is offline   Reply With Quote
Old 19th January 2019, 21:20   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,974
NIS Edit is open source, you should add real portable support, not hack something onto it with a launcher.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 19th January 2019, 21:32   #3
Gluck
Member
 
Join Date: Apr 2018
Posts: 98
"NIS Edit is open source, you should add real portable support, not hack something onto it with a launcher".

I don't know how to add real portable support, I know only (and little) how to create a launcher...

Is there a way to semplify this operation?
Gluck is offline   Reply With Quote
Old 19th January 2019, 22:38   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,974
You could try to teach yourself Delphi/Pascal, it is not that hard and the end result will be 1000 times better than a launcher.

If your launcher include both NSIS and Nis Edit then you simply write the full path of your portable NSIS. If you want to be nice you should try to detect if non-portable Nis Edit is already installed on the system and not mess up it's configuration.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump