Jump to content

Recommended Posts

Posted (edited)
  On 3/3/2017 at 7:18 AM, colombeen said:

As we need to send out this installer to people all over europe, I can't be checking on every language...

Expand  

 

This following part should bo common (in some way).

  Quote

FAILED: 0x80070003 (WIN32: 3 ERROR_PATH_NOT_FOUND)

Expand  

Could you check this on few location ?
 

Edited by mLipok
Typo

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

@mLipok this works for me : 

Local $DGCERTINST_COMMAND = 'certutil -f -user -p "' & $sPASSWORD & '" -importpfx "' & $sCERT_PATH & '"'
Local $DGCERTINST_TRY_INSTALL = RunWait($DGCERTINST_COMMAND, "", @SW_HIDE)

If $DGCERTINST_TRY_INSTALL <> 0 Then
    GUICtrlSetData($DGCERTINST_STATUS, "The installation failed, contact us")
Else
    GUICtrlSetData($DGCERTINST_STATUS, "The installation succeeded")
EndIf

The only thing that I need help with at this point is the on the fly compiling of the executable

Edited by colombeen
Posted
  On 3/3/2017 at 8:04 AM, mLipok said:

 

This following part should bo common (in some way).

Could you check this on few location ?
 

Expand  

?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

My entire script is finished... the only thing i need to know now is how to get the compiler working so that it includes all the info just like scite would...

Posted

Can you please elaborate on which information you are talking about?

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

I have a powershell script which creates the certificates I need to install

then this script will write the required info in a separate file which is automatically included in the main install au3 file

after this the powershell script should execute the compiler which would create a new exe file to install this specific certificate

this last part is the one that i need help with. It should compile the exe exactly like how scite would do it (with all the info from #Region ;**** Directives created by AutoIt3Wrapper_GUI ****)

it seems (from the info in the console) that this is more then just one command to compile the executable

 

I've tried with this : 

C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe  /in "Path-To-\DGCertInstaller.au3" /out "Path-To\DGCertInstaller.exe" /nopack /icon "Path-To\DGCertInstaller\icon.ico" /comp 4

This will create an exe but it won't add the UAC elevation requirement, manifest info, ...

Edited by colombeen
Posted

Why do you need to compile an Exe? Can't you just execute all steps from the main install au3 file?

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)
  On 3/3/2017 at 12:37 PM, water said:

Why do you need to compile an Exe? Can't you just execute all steps from the main install au3 file?

Expand  

The install needs to happen on a machine from someone outside of our domain

it's one of the reasons why they can't have the password for the pfx (security reasons) and the reason why i tried a solution using autoit

Edited by colombeen
Posted

To compile a script please check this section in the help file: https://www.autoitscript.com/autoit3/docs/intro/compiler.htm

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted
  On 3/3/2017 at 12:56 PM, water said:

To compile a script please check this section in the help file: https://www.autoitscript.com/autoit3/docs/intro/compiler.htm

Expand  

I already found that... that "works" but things like UAC elevation and the product information isn't included inside that

=>

>13:11:31 Performing the Program Resource Update steps:
...>Updating Program Version information.
...>Setting Program ExecutionLevel Manifest information to highestAvailable
...>Setting Program Compatibility Manifest information to Windows10
...>Updating Program Manifest information.
>13:11:31 Program Resource updating finished successfully.

Posted

When in SciTE press Ctrl+F7, do all the necessary settings for the compilation and press "Save Only". This writes all the needed settings into your script.
Then compiling the source by command line should give the same results.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted
  On 3/3/2017 at 1:03 PM, water said:

When in SciTE press Ctrl+F7, do all the necessary settings for the compilation and press "Save Only". This writes all the needed settings into your script.
Then compiling the source by command line should give the same results.

Expand  

That's just it... everything is already inside the au3 file... the compiler doesn't do anything with the #AutoIt3Wrapper_Res_requestedExecutionLevel=highestAvailable etc

:'-(

Posted

If you need to run your script as admin then I think it should be #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted
  On 3/3/2017 at 1:10 PM, water said:

If you need to run your script as admin then I think it should be #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator.

Expand  

my setting works fine (shows uac prompt) when I compile it with scite

Posted (edited)

Will that be handled by the compiler @jpm ?

because that's my issue at the moment... the AutoIt3Wrapper_Res_ params aren't applied to the compiled exe file

 

EDIT:

THAT IS JUST AWESOME

with the pragme compile options it does work!!! thx @jpm

Edited by colombeen

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...