Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 16th September 2015, 20:21   #1
hellik
Junior Member
 
Join Date: Mar 2010
Posts: 14
thanks for your reply.

>It can be done by using the AccessControl plugin but it is not recommended to give all users >write access to .exe/.dll files in $InstDir.

I've tried to set permission to the file ($INSTALL_DIR\some_subfolder\file_to_be_updated) which should be updated during installation by the AccessControl plugin.

but this doesn't work as it seems the updating exe ($INSTALL_DIR\bin\exe_which_does_the_update) has no (over)write access in $INSTALL_DIR\some_subfolder\ or $INSTALL_DIR\some_subfolder\file_to_be_updated.

the update of $INSTALL_DIR\some_subfolder\file_to_be_updated has only to be done during installation.

a workaround/hack may be?:

- set permission to (over)write $INSTALL_DIR\some_subfolder\file_to_be_updated
- set write permission to $INSTALL_DIR\bin\exe_which_does_the_update
- do the file update as described by invoking bat-file and subsequently exe
- set permissions of $INSTALL_DIR\some_subfolder\file_to_be_updated and $INSTALL_DIR\bin\exe_which_does_the_update back

any other hints?

thanks
hellik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump