I believe that the NT 4 Resource Kit command SHORTCUT.exe would create relative linked shortcuts. exe that it can read from itself at runtime etc.) lnk seems to work, I'm not sure if I would use this in production codeĪ much better solution is to create a little NSIS app like Oleg suggests (NSIS applications can contain embedded data at the end of the. ![]() ![]() Push "testdir\testapp.exe" full path to this is $temp\testdir\testapp.exe exe iconĬall it like this: push "$temp\testlink.lnk" !insertmacro FileWriteHexBytes $0 05003e2e657865 fake default. The icon is problematic, does not seem like it works with relative paths (but you can use system icons.) !insertmacro FileWriteHexBytes $0 48010400 flags ![]() ![]() lnk format is pretty stable and has been documented by MS) !macro FileWriteHexBytes h b While it is possible for shortcuts to contain a relative path to the target (.lnk files have a flag called SLDF_HAS_RELPATH) NSIS does not support creating anything other than "normal" shortcuts so you need to write the binary data directly (The.
0 Comments
Leave a Reply. |