Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • September 05, 2015, 07:21:40 AM
  • Proudly celebrating 10 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 1564 times)

owenduffy

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

Where are they located?

Thanks... Owen

owenduffy

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

Code: [Select]

[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:55 PM by owenduffy »