DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: .dcupdateredirect Win7  (Read 11,402 times)

owenduffy

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 29
.dcupdateredirect Win7
« on: March 13, 2012, 12:49 AM »
Are .dcupdateredirect files used still, on Win7?

Where are they located?

Thanks... Owen

owenduffy

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 29
Re: .dcupdateredirect Win7
« Reply #1 on: March 13, 2012, 02:27 AM »
I found it, c:\program data. The files don't show up in a search!

I should add some code to setup the redirect file in Inno, it is below.

Cheers
Owen

Code

[Files]
Source: "{#MyAppName}.exe"; DestDir: "{app}"; Flags: ignoreversion; AfterInstall: MakeDcFile('{#MyAppName}','{app}')
...

[Code]
procedure MakeDcFile(appname: string; instdir: string);
var
  dcf: String;
begin
  dcf := ExpandConstant('{commonappdata}\DonationCoder\DcUpdater\RedirectFiles');
  ForceDirectories(dcf);
  dcf := ExpandConstant('{commonappdata}\DonationCoder\DcUpdater\RedirectFiles\'+appname+'.dcupdateredirect');
  SaveStringToFile(dcf,ExpandConstant(instdir),false);
end;
 
[/code]
« Last Edit: March 13, 2012, 04:07 AM by owenduffy »

Original address: https://www.donationcoder.com/forum/index.php?topic=30273.0