InstallAware for Windows Installer
 

InstallAware Digital Rights Management

InstallAware includes DRM functionality beginning with InstallAware version 12.

To start the InstallAware Digital Rights Management tool, in the Start menu, in the InstallAware group, select InstallAware Digital Rights Management.

  1. Enter the full path to the application to wrap in the Application to Convert (*.EXE) field. The specified file will be overwritten with the wrapped file.
  2. Enter a unique identifier for your application in the Unique Identifier (GUID) field. Once an application associated with a particular GUID has expired on a target system, installing a newer version of the same application that has been protected using the same GUID will not restart the trial period - the application will still remain expired.
  3. Enter the title of your application in the Application Title field.
  4. Enter the version of your application in the Application Version field. Be sure to use numeric values only. Decimal points are the only non-numeric characters permitted in this field.
  5. Enter the name of your company in the Application Manufacturer field.
  6. Enter the cost of your application, in USD, in the Application Cost (USD) field. Be sure to use numeric values only. Decimal points are the only non-numeric characters permitted in this field.
  7. To expire the protected application without regard for actual live use, check the Always expire after radio button, and choose from the following additional options (8-11).
  8. To expire the application after a certain number of launches, check the Number of launches box, and specify the number of launches to allow.
  9. To expire the application after a certain number of days from the day of first run, check the Number of days box, choose the Days after installation radio button, and specify the number of days to allow.
  10. To expire the application at a fixed date (such as a beta release product), check the Number of days box, choose the Absolute expiration date radio button, and specify the exact calendar date to expire on.
  11. You may combine a date based expiration limit together with a launch number limit.
  12. To expire the protected application based on actual live use, check the Expire only after actual use box, and specify the number of hours and minutes to allow for the protected application to run.
  13. Click the Convert button to protect your application with InstallAware DRM and convert it into trialware.

To wrap your applications using InstallAware Digital Rights Management outside of the InstallAware IDE, use this tool.

This tool offers additional manual control over the InstallAware IDE in wrapping your applications:

  • The InstallAware IDE only permits you to wrap applications as part of a setup or patch build process; this tool permits you to wrap applications at any time (including from the command line).
  • The InstallAware IDE does not directly update the application to wrap itself; but instead creates a temporary file for use as the wrapped application and includes that temporary file in the setup being created. This tool directly updates the application to wrap itself.

Using the InstallAware Digital Rights Management tool from the Command Line

You may also run the InstallAware Digital Rights Management tool from the command line. Every field of the tool has corresponding command line parameters. When calling the tool from the command line, provide values for the fields as required for your wrapping mode (use the interactive version of the tool first, if you have any doubts about the parameters that are required). If any of your command line parameters include spaces, also remember to enclose them in double quote signs on the command line.

Parameter Meaning
EXE The full path to the application binary.
GUID The unique identifier of the application.
TITLE The product name of the application.
VERSION The application version.
COMPANY The manufacturer of the application.
PRICE The USD cost of the application.
ALWAYSEXPIRE Corresponds to selecting the Always expire after radio button.
BYLAUNCHES Corresponds to checking the Number of launches box.
LAUNCHES Indicates the number of launches to allow as part of the trial duration.
BYDAYS Corresponds to checking the Number of days box.
BYDAYRELATIVE Corresponds to selecting the Days after installation radio button.
DAYS Indicates the number of days to allow as part of the trial duration.
BYDAYABSOLUTE Corresponds to selecting the Absolute expiration date radio button.
YEAR Indicates the absolute expiration year.
MONTH Indicates the absolute expiration month.
DATE Indicates the absolute expiration date.
REALUSE Corresponds to selecting the Expire only after actual use radio button.
HOURS Indicates the actual hours to allow as part of the trial duration.
MINUTES Indicates the actual minutes to allow as part of the trial duration.
BUILD Instructs the tool to perform the actual wrapping. Required.

Examples:

pdrm.exe "/EXE=C:\output files\myapp.exe" /GUID={B7830C5A-D5BF-4544-B855-990BF09944D0} "/TITLE=My Application" /VERSION=12.00 "/COMPANY=My Company" /PRICE=29.95 /ALWAYSEXPIRE /BYLAUNCHES /LAUNCHES=10 /BYDAYS /BYDAYRELATIVE /DAYS=10  

In the above example, the tool will prepare to wrap the executable at the location C:\output files\myapp.exe in Try-And-Die mode with 10 runs and 10 days after installation allowed. Because the /build switch is not specified, the actual wrapping will not begin until end-user interaction.

pdrm.exe "/EXE=C:\output files\myapp.exe" /GUID={B7830C5A-D5BF-4544-B855-990BF09944D0} "/TITLE=My Application" /VERSION=12.00 "/COMPANY=My Company" /PRICE=29.95 /ALWAYSEXPIRE /BYDAYS /BYDAYABSOLUTE /YEAR=2011 /MONTH=8 /DATE=1 /BUILD

In the above example, the tool will immediately wrap the executable at the location C:\output files\myapp.exe in Try-And-Die mode with a hard coded expiration on August 1st, 2011.

By using the InstallAware Digital Rights Management tool from the command line, you will enable it to participate in unattended builds. When run from the command line, the wizard does not display any prompts or require any user interaction.

The tool returns the following codes to indicate success/failure:

  • 0: Process completed successfully
  • 1: Error during process