简体   繁体   中英

Hiding the password when typing into an Inno based setup

I have a password field in my installer which deploys a .Net windows application.Installer uses Inno deployment script ,made in pascal.Issue is for password feild , i want to show a * character when user enters.Currently it shows the alphabets which user enters.Since i am not much into pascal scripting,so require a little help here.

Below is my code:

procedure InitializeWizard;

begin
     KeyPage := CreateInputQueryPage(wpWelcome,
    'lisens validering', 'Tast inn lisens-id',
    'Vennligst oppgi din lisens-ID og klikk neste for å fortsette.');
     KeyPage.Add('lisens ID:', False);
     KeyPage.Add('bruker ID:', False);
     KeyPage.Add('passord:', False);

    booabort:=false;
end;

Just change this line

 KeyPage.Add('passord:', False); 

to

 KeyPage.Add('passord:', True); 

For more info check the inno setup documentation .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM