Closed GoogleCodeExporter closed 8 years ago
It seems you are using NSIS installer.
http://code.google.com/p/nativeclient-sdk/source/browse/trunk/src/build_tools/ma
ke_sdk_installer.nsi
If so, here is a solution:
Add attached file next to the installer .nsis file, and add the following lines
to make_sdk_installer.nsi:
!define ALL_USERS ; this is optional, otherwise it is local to the user
!include WriteRegistryString.nsh
Section "Add environment variable"
Push "NACL_SDK_PATH"
Push "$INSTDIR"
Call WriteEnvStr
SectionEnd
Original comment by erwin.coumans
on 7 Sep 2011 at 6:24
Attachments:
You could also add an un-install option, and de-register the environment
variable.
Section "Uninstall"
ClearErrors
MessageBox MB_YESNO "Uninstall Native Client SDK?" IDNO end
RMDir /r "$INSTDIR"
Push "NACL_SDK_PATH" # name
Call un.DeleteEnvStr
end:
SectionEnd
Here is our Dynamica Maya plugin installer, for your reference:
http://code.google.com/p/dynamica/source/browse/trunk/Extras/MayaPlugin/bullet_6
4bit.nsi
Original comment by erwin.coumans
on 7 Sep 2011 at 6:28
While this is an excellent suggestion (and thanks for the patches!) we're going
to hold off on this. We are working on full integration with Visual Studio and
a different installer method. The SCons builds and NSIS isntaller are there to
get developers going on Windows until there is a more complete solution.
Original comment by dsprin...@chromium.org
on 8 Sep 2011 at 2:46
[deleted comment]
Can you please explain how our custom build systems (premake/cmake) will be
able to automatically locate the Native Client SDK under Windows, in your
future solution?
Original comment by erwin.coumans
on 8 Sep 2011 at 5:34
Original issue reported on code.google.com by
erwin.coumans
on 7 Sep 2011 at 12:23