You should use this code below. You will always have the same id for your application and you will be able to overwrite your application.
function Controller()
{
installer.setValue("ProductUUID", "YourApplicationName");
var previous = installer.value("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\YourApplicationName\\InstallLocation");
if(previous !== "")
{
installer.setValue("TargetDir", previous);
installer.setDefaultPageVisible(QInstaller.TargetDirectory, false);
}
}
You should use this code below. You will always have the same id for your application and you will be able to overwrite your application.
function Controller()
{
installer.setValue("ProductUUID", "YourApplicationName");
var previous = installer.value("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\YourApplicationName\\InstallLocation");
if(previous !== "")
{
installer.setValue("TargetDir", previous);
installer.setDefaultPageVisible(QInstaller.TargetDirectory, false);
}
}