Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

NSIS SRPUtil

My nsis rdk create cant find SRPUtil , where can I download this from. It seems to be missing from the 'SRP NSIS Utilities' download (unless it is being blocked, should it be getting installed)

Comments

  • We don't use SRPUtil.dll anymore in our installers, but you can download it here if you need it for you installer.
  • Thanks.

    Where do I put it?
    Do I register it?
  • No registration required. You have to put it in C:\Program Files (x86)\NSIS\Plugins, or wherever you NSIS is installed.
  • I've installed NSIS version 3 on another PC and copied over SRPutil appropriately. However the srputil::startOI command doesn't appear to work (it can't find REVCAP32.DLL, even if run as administrator).
    I could just install NSIS version 2 instead..

    Kevin - if you're not using SRPutil.dll anymore then is there a better way to do this??
  • I use SRPInstallRDK. These are independent EXEs whose only job is to, well, install an RDK. Here's the code I use. I'm using NSIS 3.08, so this should work there.

    First, I copy the EXE and RDK files into $PLUGINSDIR, then I call the exe like this:

    FileWrite $0 '"$PLUGINSDIR\SRPInstallRdk64.exe" -a $OI_APP -u $OI_USERNAME -p $OI_PASSWORD "$PLUGINSDIR\RDK"$\r$\n'
  • Hmm, ok - thanks. I'm using srputil::runCommand to run a program with parameters, determined at runtime. I'll have to find a way to do than in an RDK context.. :)

    Cheers, M@
  • Is the 32/64 versions related to OI, PC or NSIS versions
  • First, I copy the EXE and RDK files into $PLUGINSDIR, then I call the exe like this:

    FileWrite $0 '"$PLUGINSDIR\SRPInstallRdk64.exe" -a $OI_APP -u $OI_USERNAME -p $OI_PASSWORD "$PLUGINSDIR\RDK"$\r$\n'


    Can you expand on this a bit more? - where ; what ; how!!
  • Barry - I wonder if you are thinking this is a command to run from a prompt. It isn't. This is a command that is entered into the NSIS installer script...similar to commands being put into a BAT file. It is executed at runtime when the installer is is run.
  • edited April 10
    Sorry, guys. I sent my last post just before bed. The FileWrite statement is confusing for good reason. Here's the whole code:

    SetOutPath $INSTDIR SetOutPath $WINDIR DetailPrint " " DetailPrint "Installing RDK for OI 10 ..." DetailPrint " " FileOpen $0 "$PLUGINSDIR\rdkinstall64.bat" w FileWrite $0 'pushd "$INSTDIR"$\r$\n' ${If} $OI_PASSWORD == "" FileWrite $0 '"$PLUGINSDIR\SRPInstallRdk64.exe" -a $OI_APP -u $OI_USERNAME -p $OI_USERNAME "$PLUGINSDIR\SRPRDKINSTALL64"$\r$\n' ${Else} FileWrite $0 '"$PLUGINSDIR\SRPInstallRdk64.exe" -a $OI_APP -u $OI_USERNAME -p $OI_PASSWORD "$PLUGINSDIR\SRPRDKINSTALL64"$\r$\n' ${EndIf} FileWrite $0 'popd' FileClose $0 ReadEnvStr $0 COMSPEC nsExec::ExecToLog '"$0" /c "$PLUGINSDIR\rdkinstall64.bat"' Pop $0 Pop $0

    I'm writing the installer command to a bat file that's being created on the fly. I think I did this to deal with mapped drives or something... I can't remember. Then I run the bat file with ExecToLog. Sorry for the confusion.

    BTW, by using EXEs to run the RDKs, it allows me to handle both 32-bit and 64-bit from a single 32-bit installer.
  • Are you willing to provide a newer installer script as the one I have still has srputil in it.
  • Here is a new template script using the aforementioned EXEs. Disclaimer: this is a template and hasn't been fully tested. It should be enough to show you how to use it.
  • edited April 11
    Kevin, thank you so much for your effort. Getting too old to learn how to put this stuff together. Dont get me started on Bob Carten's AI 'teaching' hints 😜
Sign In or Register to comment.