PDA

View Full Version : Possible to install a program to %COMMONFILESDIR% on Win-7



NewsArchive
07-30-2009, 01:16 AM
Hi,

I am shure it is not the recommended way of doing it, but will it work if a
program is installed under %COMMONFILESDIR% on a Windows-7 system ?

I haven't access to a Win-7 box so cannot test myself right now.

Cheers,
/Poul

NewsArchive
07-31-2009, 02:51 AM
Hi Poul,

> I am shure it is not the recommended way of doing it, but will it work if
> a program is installed under %COMMONFILESDIR% on a Windows-7 system ?
>
> I haven't access to a Win-7 box so cannot test myself right now.

You are correct. %COMMONFILESDIR% is NOT the recommended folder for your
application because it's the file system directory that serves as a
repository for common files.

But if this installation location works for you on Vista and Windows Server
2008 then you'll not have any problem on a Windows 7 or Server 7 system.

Just curious, why do you have to install to %COMMONFILESDIR%?

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
07-31-2009, 02:51 AM
Hi Friedrich,


> Hi Poul,
>
>> I am shure it is not the recommended way of doing it, but will it work if
>> a program is installed under %COMMONFILESDIR% on a Windows-7 system ?
>>
>> I haven't access to a Win-7 box so cannot test myself right now.
>
> You are correct. %COMMONFILESDIR% is NOT the recommended folder for your
> application because it's the file system directory that serves as a
> repository for common files.
>
> But if this installation location works for you on Vista and Windows
> Server 2008 then you'll not have any problem on a Windows 7 or Server 7
> system.
>
> Just curious, why do you have to install to %COMMONFILESDIR%?
>

It is a "legacy" program that is tied into another company's ERP-system.
Its data is located in a directory beneath the programfolder, and therefore
it obviously will NOT work installed in "Program Files"

Until now the solution on Vista has been to create our own folder like
"c:\progs\company" having the data in "c:\progs\company\datadir" but I
understand that this should be impossible on a Win-7 system. Is this
correct ?

Cheers,
/Poul

NewsArchive
07-31-2009, 02:52 AM
Hi Poul,

>> Just curious, why do you have to install to %COMMONFILESDIR%?
>>
>
> It is a "legacy" program that is tied into another company's ERP-system.
> Its data is located in a directory beneath the programfolder, and
> therefore it obviously will NOT work installed in "Program Files"

asInvoker and legacy programs cannot write to "Program Files" and subfolders
of "Program Files". And %COMMONFILESDIR% is a subfolder of "Program Files"
;-) So this will also not work. If your application is a legacy app (not
UAC-aware) then virtualization will kick in and write actions will be
redirected.

> Until now the solution on Vista has been to create our own folder like
> "c:\progs\company" having the data in "c:\progs\company\datadir" but I
> understand that this should be impossible on a Win-7 system. Is this
> correct ?

No. c:\progs\company\datadir works fine on a Windows 7 system.

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
07-31-2009, 02:53 AM
Hi Friedrich,

> Hi Poul,
>
>>> Just curious, why do you have to install to %COMMONFILESDIR%?
>>>
>>
>> It is a "legacy" program that is tied into another company's ERP-system.
>> Its data is located in a directory beneath the programfolder, and
>> therefore it obviously will NOT work installed in "Program Files"
>
> asInvoker and legacy programs cannot write to "Program Files" and
> subfolders of "Program Files". And %COMMONFILESDIR% is a subfolder of
> "Program Files" ;-) So this will also not work. If your application is a
> legacy app (not UAC-aware) then virtualization will kick in and write
> actions will be redirected.
>
>> Until now the solution on Vista has been to create our own folder like
>> "c:\progs\company" having the data in "c:\progs\company\datadir" but I
>> understand that this should be impossible on a Win-7 system. Is this
>> correct ?
>
> No. c:\progs\company\datadir works fine on a Windows 7 system.

Ah that is good information. This will probably be the location we will
use.

Thanks.

/Poul