C#, Program Files and Win 7

renierp

Senior Member
Joined
Oct 14, 2006
Messages
806
Reaction score
0
Location
Randburg
Hi Guys.

I am busy writing a version update tool, (only doing the technical specifications now, so have not started coding yet).

The concept is simple, if there is a major update, download the MSI from the download location (after selecting the closest/fastest server) and perform a background install.
But for minor updates and bugfixes, it is sometimes only necessary to update one or two DLL's. So ideally I would like to only copy the DLL/EXE from the server to the Application Folder (which resides in Program Files). Now on XP this should not be an issue, but with UAC on Vista/7 this becomes a major issue.
Although I know there is probably not a solution for this, as this is a preventative measure from Microsoft for enhanced security, has anyone maybe got any better ideas of implementing this solution. I would like to avoid building InstallAware patches for each update, and simply copy the necessary binaries over.
 
Might not really be an answer to your question, but we had great success with RTPatch years ago. Was way easier than doing everything ourselves ...

http://www.pocketsoft.com/
 
Do as Chrome does, and install to the user's %AppData% folder?

I agree that it will be much less hassles, but, due to unknown reasons, the client requires all software to be installed to Program Files.

Might not really be an answer to your question, but we had great success with RTPatch years ago. Was way easier than doing everything ourselves ...

http://www.pocketsoft.com/

Although I am not sure if this would solve my problems, this looks REALLY attractive. I am looking at patching from InstallAware (as that is the installer I am currently using), they use a similar approach, but at file level, which is already better than the 60MB update I currently have to send over a 64kbps VPN. Don't ask... ;)


Thanks, will look into it when I get a chance, see you need to request an evaluation copy...
 
I agree that it will be much less hassles, but, due to unknown reasons, the client requires all software to be installed to Program Files.

A word of caution, if your client runs Win7 64bit then any 32bit applications will be in Program Files (x86)

Just be aware of that if there is any hard coded stuff going on :)
 
A word of caution, if your client runs Win7 64bit then any 32bit applications will be in Program Files (x86)

Just be aware of that if there is any hard coded stuff going on :)

No I'm well aware of that. Running x64 myself. :)
Avoiding hard coding by all means possible!


Sent from the MyBroadband iPhone App
 
If use the install programme to do it for you ie Installshield
 
Top
Sign up to the MyBroadband newsletter
X