compufram
Posts: 2
Joined: Wed Jul 11, 2012 12:56 am

Limiting Installs

I'm trying to build an installer that only works once, how do I do that? Thanks! Sam
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Limiting Installs

Hello and welcome to Advanced Installer forums,

If you want to create an installer package that will install the application only once and that cannot modify, repair or remove the application after installation, then you can proceed like this:
- From "Product Details" -> "Product Details" tab uncheck "Register product with Windows Installer" option.
- Go to "Registry" page and create a new value (i.e. MY_VALUE) under "HKLM\Software\[Manufacturer]\[ProductName]" registry key using the [ New Value ] toolbar button.
- Go to "Search" page and add a "New Extended Search" (i.e. SEARCH_REGISTRY_VALUE) like this:
  • Criteria: Registry value does not exist
    Registry Value: HKLM\Software\[Manufacturer]\[ProductName]\MY_VALUE
- Go to "Launch Conditions" -> "Custom" tab and create a custom launch condition, using the [New] button, like this:
  • Condition: SEARCH_REGISTRY_VALUE
    Description: Your custom launch condition description
- Build and run your project.

Let us know if this helps, otherwise give us more details about the scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
compufram
Posts: 2
Joined: Wed Jul 11, 2012 12:56 am

Re: Limiting Installs

That worked! Thanks!

Return to “Building Installers”