Skip to content
⌘ NSIS Forum Archive

Relative path

4 posts

Gluck#

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.
Anders#
NIS Edit is open source, you should add real portable support, not hack something onto it with a launcher.
Gluck#
"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?
Anders#
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.