Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
AnswerRe: passing array of doubles Pin
__John_28-Mar-12 23:06
__John_28-Mar-12 23:06 
GeneralRe: passing array of doubles Pin
DaveyM6929-Mar-12 2:46
professionalDaveyM6929-Mar-12 2:46 
AnswerRe: passing array of doubles Pin
Henry Minute29-Mar-12 4:38
Henry Minute29-Mar-12 4:38 
Questionruntime change into database Pin
Member 823360127-Mar-12 19:57
Member 823360127-Mar-12 19:57 
AnswerRe: runtime change into database Pin
Richard MacCutchan27-Mar-12 22:25
mveRichard MacCutchan27-Mar-12 22:25 
AnswerRe: runtime change into database Pin
Eddy Vluggen28-Mar-12 7:14
professionalEddy Vluggen28-Mar-12 7:14 
GeneralRe: runtime change into database Pin
Member 823360129-Mar-12 19:12
Member 823360129-Mar-12 19:12 
QuestionHow to make 64-bit registry writable in 32-bit application Pin
gshen27-Mar-12 13:55
gshen27-Mar-12 13:55 
I have a x86 c# program which uses Process.StartInfo and Process.Start to run a batch file (ToInstallSql.bat) to install Sql Server 2008 R2 silently which contains:
SQLEXPR_x64_exe /ConfigurationFile=MySqlConfiguration.ini

I have to install 64-bit Sql Server because there are other existing installation of Sql Server products and instances of 64-bit.

The c# program (MyCustAction.exe) contains the following:

Process proc=new Process();
proc.StartInfo.FileName = "ToInstallSql.bat";
proc.StartInfo.RedirectStandardInput = true;
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.CreateNoWindow = true;
proc.Start();
proc.WaitForExit();
proc.Close();

If I directly run the program MyCustAction.exe as administrator, Sql server is installed successfully. But if I add MyCustAction.exe as an InstallShield custom action After File Transfer in an InstallShield project, Sql Server installation failed even if the installation process took longer time than normal with no error message. The Releases/Setup Launcher/Required Execution Level in InstallShield project is set to Administrator. The MyCustAction.exe is embedded with a manifest to run as administrator. I run the InstallShield 2012 Express created Setup.exe as administrator. I checked the error log of SQL Server. It says it could not write to windows registry.

The InstallShield install is an x86 application. But the Sql Server is x64 which is to be installed by MyCustAction which is in turn to be run by InstallShield custom action

The c# program,MyCustAction.exe, and batch file are transferred by InstallShield setup.exe to a subfolder under the installation folder.

My question is how to make windows registry writable for 64-bit. InstallShield disable x64 registry when installing my application of 32-bit.
I tried many different scenarios, still unsuccessful. Please help me.
Sheng

AnswerRe: How to make 64-bit registry writable in 32-bit application Pin
Richard Andrew x6427-Mar-12 14:44
professionalRichard Andrew x6427-Mar-12 14:44 
GeneralRe: How to make 64-bit registry writable in 32-bit application Pin
gshen28-Mar-12 14:02
gshen28-Mar-12 14:02 
QuestionCopying/replacing a file in the system dir? Pin
Muammar©27-Mar-12 1:23
Muammar©27-Mar-12 1:23 
AnswerRe: Copying/replacing a file in the system dir? PinPopular
Pete O'Hanlon27-Mar-12 1:35
mvePete O'Hanlon27-Mar-12 1:35 
GeneralRe: Copying/replacing a file in the system dir? Pin
Vipin_Arora27-Mar-12 2:56
Vipin_Arora27-Mar-12 2:56 
AnswerRe: Copying/replacing a file in the system dir? Pin
Vipin_Arora27-Mar-12 2:58
Vipin_Arora27-Mar-12 2:58 
AnswerRe: Copying/replacing a file in the system dir? Pin
Eddy Vluggen27-Mar-12 5:17
professionalEddy Vluggen27-Mar-12 5:17 
QuestionBypass Windows Message other than Open & Close Pin
varunpandeyengg26-Mar-12 22:25
varunpandeyengg26-Mar-12 22:25 
AnswerRe: Bypass Windows Message other than Open & Close Pin
Mycroft Holmes26-Mar-12 22:29
professionalMycroft Holmes26-Mar-12 22:29 
GeneralRe: Bypass Windows Message other than Open & Close Pin
varunpandeyengg26-Mar-12 22:46
varunpandeyengg26-Mar-12 22:46 
GeneralRe: Bypass Windows Message other than Open & Close Pin
N a v a n e e t h27-Mar-12 1:20
N a v a n e e t h27-Mar-12 1:20 
AnswerRe: Bypass Windows Message other than Open & Close Pin
Luc Pattyn27-Mar-12 2:22
sitebuilderLuc Pattyn27-Mar-12 2:22 
QuestionI'll download program of PKI C#(asp.net),who can tell me the url? Pin
Jack Li26-Mar-12 21:59
Jack Li26-Mar-12 21:59 
AnswerRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Pete O'Hanlon26-Mar-12 22:10
mvePete O'Hanlon26-Mar-12 22:10 
GeneralRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Mycroft Holmes26-Mar-12 22:32
professionalMycroft Holmes26-Mar-12 22:32 
GeneralRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Pete O'Hanlon26-Mar-12 22:48
mvePete O'Hanlon26-Mar-12 22:48 
JokeRe: I'll download program of PKI C#(asp.net),who can tell me the url? Pin
Manfred Rudolf Bihy27-Mar-12 3:50
professionalManfred Rudolf Bihy27-Mar-12 3:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.