This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: .ini files into C:\ProgramData folder under Windows Seven
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 13, 2012
07:54 AM
.ini files into C:\ProgramData folder under Windows Seven
Hello,
I would like my .msi Installer to delete an .ini file located into a "C:\ProgramData" subfolder under Windows Seven 32bits.
This .ini file has been installed by another .msi Installer.
The other .msi Installer in chained into my main .msi Installer.
I tried into my main Installer:
- to remove the file with the "RemoveFiles" action. In "RemoveFile" table, "InstallMode" value is 3 for the file to remove.
- with a Script "Custom Actions" with VB code
The .ini properties in the chained .msi Installer are:
- Override system attributes : yes
- Read-only : no
- Vital : No
- Always Overwrite : yes
My main msi Installer contains its .ini file into a "C:\ProgramData" subfolder too.
I can't modify this file unless I modify it into another folder C:\Users\Public for example and manually recopy it after.
No problem under Windows XP with "C:\Documents and Settings\All Users\Application Data" instead of "C:\ProgramData"
Could you help me ?
Thanks in advance.
Armelle
I would like my .msi Installer to delete an .ini file located into a "C:\ProgramData" subfolder under Windows Seven 32bits.
This .ini file has been installed by another .msi Installer.
The other .msi Installer in chained into my main .msi Installer.
I tried into my main Installer:
- to remove the file with the "RemoveFiles" action. In "RemoveFile" table, "InstallMode" value is 3 for the file to remove.
- with a Script "Custom Actions" with VB code
The .ini properties in the chained .msi Installer are:
- Override system attributes : yes
- Read-only : no
- Vital : No
- Always Overwrite : yes
My main msi Installer contains its .ini file into a "C:\ProgramData" subfolder too.
I can't modify this file unless I modify it into another folder C:\Users\Public for example and manually recopy it after.
No problem under Windows XP with "C:\Documents and Settings\All Users\Application Data" instead of "C:\ProgramData"
Could you help me ?
Thanks in advance.
Armelle
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 20, 2012
11:08 AM
Try running install "As Administrator" by right mouse clicking and choosing "As Administrator". Win7 has more strict administrative security.
I think there is some property you can set to force elevated privileges when running the msi, not sure.
I think there is some property you can set to force elevated privileges when running the msi, not sure.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2012
02:45 PM
Yes there is Jesse! When you start to define your release, there is an opportunity to set the Required Execution Level. I think it defaults to Invoker but you can change it to Administrator. Which, in a Windows 7 environment, should do what you are looking for (let you run the install as a true Administrator).