Based on the excellent installer for the Excel add-in (Daniel XL Toolbox), I created an installation file that, among other things, should register some ActiveX
[Files] ; The include file makes adds all .XLA and .XLAM files contained in the ; SOURCEDIR to the project. Source: "c:\source\path\MSCOMCTL.OCX"; \ DestDir: "\users\public\EzPasteFiles"; Flags: regserver Source: "c:\source\path\DAS_AX_Knob.dll"; \ DestDir: "\users\public\EzPasteFiles"; Flags: regserver Source: "c:\source\path\GIF89.DLL"; \ DestDir: "\users\public\EzPasteFiles"; Flags: regserver
I need to add an add-on for installation, and then, before starting to register files, an administrator is checked, and if the user does not have them, a message is displayed asking you to enter an administrator password so that registration can take place. I know that this can be done at the beginning of the configuration, but then the addition will not be activated if this is a standard user account. The add-on needs registered components, a standard user cannot install it correctly.
I am looking for something like this to shoot before starting registration:
MyProgChecked := not(IsAdminLoggedOn or IsPowerUserLoggedOn); if MyProgChecked = True then begin MsgBox( 'Kindly notice:' #13#13 'It seems as you are not looged as an administrator' #13#13 'Please abort and reinstall EzPaste AS an administrator' #13#13 '(To install As an Adminstrator, just save the exe setup anywhere then Right Click on it to get to this feature or ask your IT administrator for proper directives)', mbConfirmation, MB_OK); { Popup message asking for Pwd } ExitProcess(0); end;
I am naturally open to any other approach
I would also be happy to understand how a domain user (Windows server) without administrator rights should continue to install addin.
source share