topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 5:41 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: .dcupdateredirect Win7  (Read 6943 times)

owenduffy

  • Honorary Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 29
    • View Profile
    • Donate to Member
.dcupdateredirect Win7
« on: March 12, 2012, 07:49 PM »
Are .dcupdateredirect files used still, on Win7?

Where are they located?

Thanks... Owen

owenduffy

  • Honorary Member
  • Joined in 2007
  • **
  • default avatar
  • Posts: 29
    • View Profile
    • Donate to Member
Re: .dcupdateredirect Win7
« Reply #1 on: March 12, 2012, 09:27 PM »
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


[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 12, 2012, 11:07 PM by owenduffy »