CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2021-02-27
by Alexis

Original Post

Original - Posted on 2021-02-27
by Alexis



            
Present in both answers; Present only in the new answer; Present only in the old answer;

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); } }


        
Present in both answers; Present only in the new answer; Present only in the old answer;