This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Thanx . . .
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2009
04:46 AM
Installing/copying a file, but not uninstalling it on uninstallation?
This is a 32bit normal MSI project that must install on Server 2003 or 2008...
I use the following code to copy a file to MSCRM:
*********************************************
function CopyDLLtoCRM(hMSI)
begin
end;
*********************************************
I can copy the file, but when uninstalling, I think it is removing it and that causes MSCRM to stop working - how do I prevent it from removing this file?
I use the following code to copy a file to MSCRM:
*********************************************
function CopyDLLtoCRM(hMSI)
STRING strSourceDir, strTargetDir, strSourceFileName, strTargetFileName;
NUMBER nvSize;
NUMBER nvSize;
begin
//Get target directory from MSI constant
nvSize = 512;
MsiGetProperty(ISMSI_HANDLE, "CRMINSTALLDIR", strTargetDir, nvSize);
//Set source directory
strSourceDir = INSTALLDIR;
//Copy file = microsoft.crm.sdk.dll
strSourceFileName = strSourceDir + "\\microsoft.crm.sdk.dll";
strTargetFileName = strTargetDir + "\\microsoft.crm.sdk.dll";
if(CopyFile (strSourceFileName, strTargetFileName) < 0) then
MessageBox ("There was an error copying the file Microsoft.Crm.Sdk.Dll to the MSCRM Installation. \n" +
"refer to the manual on how to do this manually." + svTemp, INFORMATION);
endif;
nvSize = 512;
MsiGetProperty(ISMSI_HANDLE, "CRMINSTALLDIR", strTargetDir, nvSize);
//Set source directory
strSourceDir = INSTALLDIR;
//Copy file = microsoft.crm.sdk.dll
strSourceFileName = strSourceDir + "\\microsoft.crm.sdk.dll";
strTargetFileName = strTargetDir + "\\microsoft.crm.sdk.dll";
if(CopyFile (strSourceFileName, strTargetFileName) < 0) then
MessageBox ("There was an error copying the file Microsoft.Crm.Sdk.Dll to the MSCRM Installation. \n" +
"refer to the manual on how to do this manually." + svTemp, INFORMATION);
endif;
end;
*********************************************
I can copy the file, but when uninstalling, I think it is removing it and that causes MSCRM to stop working - how do I prevent it from removing this file?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2009
04:59 AM
Check disable(LOGGING) ... enable(LOGGING) in the handbook
Greetings,
Johannes
Greetings,
Johannes
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2009
05:38 AM
I believe this works like a charm . . .
Thanx 😄
Thanx 😄