Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 13-09-2009, 09:35
peterf1999's Avatar
peterf1999 peterf1999 is offline
Die Hard Member
 
Join Date: Nov 2008
Location: Italy
Posts: 928
Thanks: 14
Thanked 983 Times in 236 Posts
peterf1999 is on a distinguished road
This simple code (setup.exe) launch MINI NINJAS original installer (NSIS) & unpack freearc archive at end of installation

Code:
function InitializeSetup(): Boolean;

var
ResultCode: integer; path: string;

begin

  if not RegKeyExists(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mini Ninjas') then
  begin
  Exec (ExpandConstant('{src}\Install.exe'),'', '', SW_SHOW,
     ewWaitUntilTerminated, ResultCode)
  if RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mini Ninjas',
     'UninstallString', path) then
  begin
  path:=RemoveBackslash(ExtractFilePath(path));  
  Exec (ExpandConstant('{src}\MN_arc.exe'), '-x -d'+'"'+path+'"'+' -y -s2', '', SW_SHOW,
      ewNoWait, ResultCode)
  end
  end else
  begin
  Exec (ExpandConstant('{src}\Install.exe'),'', '', SW_SHOW,
     ewNoWait, ResultCode)
  end;

end;

Last edited by peterf1999; 13-09-2009 at 09:41.
Reply With Quote
Sponsored Links
  #2  
Old 15-11-2009, 09:12
bo_3li_h bo_3li_h is offline
Registered User
 
Join Date: Mar 2007
Location: Kuwait
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
bo_3li_h is on a distinguished road
Quote:
Originally Posted by peterf1999 View Post
This simple code (setup.exe) launch MINI NINJAS original installer (NSIS) & unpack freearc archive at end of installation

Code:
function InitializeSetup(): Boolean;

var
ResultCode: integer; path: string;

begin

  if not RegKeyExists(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mini Ninjas') then
  begin
  Exec (ExpandConstant('{src}\Install.exe'),'', '', SW_SHOW,
     ewWaitUntilTerminated, ResultCode)
  if RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mini Ninjas',
     'UninstallString', path) then
  begin
  path:=RemoveBackslash(ExtractFilePath(path));  
  Exec (ExpandConstant('{src}\MN_arc.exe'), '-x -d'+'"'+path+'"'+' -y -s2', '', SW_SHOW,
      ewNoWait, ResultCode)
  end
  end else
  begin
  Exec (ExpandConstant('{src}\Install.exe'),'', '', SW_SHOW,
     ewNoWait, ResultCode)
  end;

end;


Can please tell me how to compile this code? and please let me know where to find some little guide to learn how to use it in the feature for my own conversions, i will appreciate it

and thanks for the conversion, tested under vista 32 it works perfect
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INDEX - CD2DVD Conversion Index **UPDATED: 17-07-2024** Grumpy PC Games - CD/DVD Conversions 252 16-07-2024 20:35
Mini Ninjas DVD9->2DVD5 hard worker PC Games - CD/DVD Conversions 13 20-02-2011 21:10
GhostBusters The VideoGame DVD9 to 1xDVD5 peterf1999 PC Games - CD/DVD Conversions 13 05-02-2010 08:51
Crysis DVD9 to 1xDVD5 estecb PC Games - CD/DVD Conversions 3 21-03-2008 18:10



All times are GMT -7. The time now is 14:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com