Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Pass InstallScript variable values to Java program


1 reply to this topic

ashish.picha

ashish.picha
  • Full Members
  • 1 posts

Posted 22 February 2013 - 07:48

I want to pass the values taken as input from user in InstallShield/Script to my java application.

For example: At the time of installation the user is prompted for credentials via a InstallShield dialog. I want to pass these credentials from InstallScript to my Java program/application, where i can try to validate these credentials, and notify the user if the credentials passed or failed.

Please help.

Thanks in advance.

-ap

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 February 2013 - 11:09

It depends on the way you want to pass them to your Java program. If you launch it from your InstallScript, you could pass the variable value on the command line. If you launch it from a custom action, you might have to copy the variable value to a Windows Installer property first, using the MsiSetProperty funtion. Same if you want to store the value in a registry entry.