Advanced Installer Community - Search

Search found 5 matches

Go to advanced search

by Frimlik
Tue Apr 16, 2019 10:06 am
Forum: Common Problems
Topic: Run batch as administrator - import schtask with highest privileges
Replies: 3
Views: 5697
 
Jump to post

Re: Run batch as administrator - import schtask with highest privileges

Well, that's what I tried, so it does not work.

But I tried another approach - to write a C++ program which does the same thing as the batch, build it and add exe file as temporary file. Then to create Custom action and run this exe file. Now it works as I wanted.

In another thread at this forum I ...
by Frimlik
Mon Apr 15, 2019 3:02 pm
Forum: Common Problems
Topic: Custom action folder command line parameter does not work
Replies: 5
Views: 4629
 
Jump to post

Re: Custom action folder command line parameter does not work

Hello Catalin,

thanks for your response.
For some reason I expected, that setup itself runs under admin privileges (to be able to write into Program Files folder), but obviously I was wrong :D.

George.
by Frimlik
Sat Apr 13, 2019 4:43 pm
Forum: Common Problems
Topic: Custom action folder command line parameter does not work
Replies: 5
Views: 4629
 
Jump to post

Re: Custom action folder command line parameter does not work

I've investigated through google further and have found that in this case it is enough to check the "Run under the LocalSystem account with full privileges" option.

But I wonder, what the option "Run as Administrator" does and why it does not work (from my point of view) with batch files. Could you ...
by Frimlik
Sat Apr 13, 2019 4:06 pm
Forum: Common Problems
Topic: Run batch as administrator - import schtask with highest privileges
Replies: 3
Views: 5697
 
Jump to post

Run batch as administrator - import schtask with highest privileges

Good morning,

what I want to do is to import scheduled task, that would have checked the "Run with highest privileges" checkbox in Task scheduler window, while installation. I successfully created custom action which runs a batch file with command which imports the scheduled task:

schtasks ...
by Frimlik
Thu Mar 28, 2019 2:45 am
Forum: Common Problems
Topic: Custom action folder command line parameter does not work
Replies: 5
Views: 4629
 
Jump to post

Custom action folder command line parameter does not work

Hello,

I need to call schtasks command with own XML file (settings, that are available for Scheduled Tasks in Installer itself, aren't enough for me), so I created a batch file with this command and placed it into Temporary folder (I placed some "debug sleeps" into the batch).
Then I defined Custom ...

Go to advanced search