AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Update serial check

Hi,
When the client updates my software from auto updater it asks it on serial every update,
Can I detect the serial installed from registry value or even not ask for serial when it updates a current installed software?

Thanks in advance.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Update serial check

Hello,

In order to achieve what you want you can take a look on our "License Check" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Re: Update serial check

Hi,

I think you didn't get my point, I'll explain in more details

First of all, All users can update my software I don't check for license when requesting upgrades.
Secondly, The Installation of my software asks users for a serial number where it is checked by a custom DLL then after check write the serial to a value in registry.

so when I provide a software update it uninstall the old version and install the new one and before installation it asks the user on the serial number.
So in every update the installation process will acquire the serial number however it is the same serial he entered in the first version he installed.

What I want to do is when I am installing an update, can the new installation detects the serial of the older version by reading it from registry or any other technique ?
So the user doesn't need to provide the serial every time it installs an update.


Hint: patch installation doesn't acquire serial so I need to do that with updates.

Thanks in advance
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Update serial check

Hello,

First of all, I apologize for misunderstanding your question.

If you want to skip our "UserRegistrationDlg" dialog during upgrade, then I'm afraid this is not possible. What you can do is to pre-populate your serial number field (PIDKEY property) from "UserRegistrationDlg" with the serial number stored in your registry value (during upgrade).
Here's the steps to proceed:
- Open the new version of your installer project.
- Go to "Search" page and add a registry search (named PIDKEY) like this:
  • Root: HKEY_LOCAL_MACHINE
    Key: Software\[Manufacturer]\[ProductName]
    Name: Serial
    Type: Retrieve the raw value
- Build and run your project.

Also, here's attached a sample, created using version 9.5 of Advanced Installer, which implements a similar scenario.
sample.zip
(270.23 KiB) Downloaded 472 times
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AhmedAlaa
Posts: 20
Joined: Tue Sep 18, 2012 10:51 am

Re: Update serial check

Thanks It worked perfectly :D
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Update serial check

You're welcome. Glad to help.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”