예제 #1
0
 internal static uint MsiSetProperty(int hInstall, string szName, string szValue)
 {
     if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall))
     {
         return(NativeMethods.MsiSetProperty(hInstall, szName, szValue));
     }
     else
     {
         return(RemotableNativeMethods.MsiFunc_ISS(
                    RemoteMsiFunctionId.MsiSetProperty,
                    RemotableNativeMethods.GetRemoteHandle(hInstall),
                    szName,
                    szValue));
     }
 }
예제 #2
0
 internal static uint MsiSetTargetPath(int hInstall, string szFolder, string szFolderPath)
 {
     if (!RemotingEnabled || !RemotableNativeMethods.IsRemoteHandle(hInstall))
     {
         return(NativeMethods.MsiSetTargetPath(hInstall, szFolder, szFolderPath));
     }
     else
     {
         return(RemotableNativeMethods.MsiFunc_ISS(
                    RemoteMsiFunctionId.MsiSetTargetPath,
                    RemotableNativeMethods.GetRemoteHandle(hInstall),
                    szFolder,
                    szFolderPath));
     }
 }