LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
wiebe@CARYA

Run executable at end of installation that is not in the project

Status: Declined

Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.

After installation we might have to set the ProgramData rights.

 

I can run an executable, but it has to be in the installer, and therefore in the project. Why? I just want to call:

 

icacls "%USERPROFILE%\DSS Measurement System\*" /grant Users:(OI)(CI)F

 

Now I have to work around it. Perhaps create and include a batch file that deletes itself?

5 Comments
wiebe@CARYA
Knight of NI

thats a : and a ( not a :(.

wiebe@CARYA
Knight of NI

For reference, put this in the batch file:

 

@ECHO OFF
SETLOCAL
SET mypath=%~dp0
icacls "%mypath:~0,-1%" /grant Users:(OI)(CI)F /t
start /b "" cmd /c del "%~f0"&exit /b

 

Mads
Active Participant

I agree that this should be supported. In this particular use case you really want this though:

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Tools-to-grant-applications-access-to-common-applicati...

wiebe@CARYA
Knight of NI

Mads,

 

Yes, I saw it and it helped me acknowledge that I was not blindsided, and that this really is not possible to do easilly. kodo'd it as well.

 

Your link will probably help out someone, so thank you for mentioning it.

 

For now, the batch file works like a charm. The last line deletes itself, so the file won't be used again.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.