Click here to Skip to main content
16,011,988 members
Home / Discussions / C#
   

C#

 
GeneralRe: Debug error " 'Method' is a 'variable' but is used like a 'method'" Pin
PIEBALDconsult17-May-08 9:02
mvePIEBALDconsult17-May-08 9:02 
GeneralRe: Debug error " 'Method' is a 'variable' but is used like a 'method'" Pin
asafbs200417-May-08 12:34
asafbs200417-May-08 12:34 
GeneralRe: Debug error " 'Method' is a 'variable' but is used like a 'method'" Pin
asafbs200417-May-08 12:50
asafbs200417-May-08 12:50 
GeneralRe: Debug error " 'Method' is a 'variable' but is used like a 'method'" Pin
PIEBALDconsult17-May-08 13:59
mvePIEBALDconsult17-May-08 13:59 
QuestionDifference between an EXE and DLL Pin
jdkulkarni16-May-08 3:31
jdkulkarni16-May-08 3:31 
AnswerRe: Difference between an EXE and DLL Pin
originSH16-May-08 3:48
originSH16-May-08 3:48 
AnswerRe: Difference between an EXE and DLL Pin
Brady Kelly16-May-08 3:53
Brady Kelly16-May-08 3:53 
QuestionError in buliding installer? Pin
Ibuprofen16-May-08 2:48
Ibuprofen16-May-08 2:48 
using System;<br />
using System.Collections.Generic;<br />
using System.ComponentModel;<br />
using System.Configuration.Install;<br />
using Microsoft.Win32;<br />
using System.Reflection;<br />
using System.IO;<br />
using System.Diagnostics;<br />
using System.Windows.Forms;<br />
<br />
namespace WindowsControlLibrary1<br />
{<br />
    [RunInstaller(true)]<br />
    public partial class CustomInstaller : Installer<br />
    {<br />
        public CustomInstaller()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
<br />
        protected override void OnAfterInstall(System.Collections.IDictionary savedState)<br />
        {<br />
            string programName = "\"" + CeAppMgrExe + "\"";<br />
            string programArg = "\"" + IniFilePath + "\"";<br />
<br />
            MessageBox.Show(programName + " " + programArg);<br />
            Process.Start(programName, programArg);<br />
            base.OnAfterInstall(savedState);<br />
        }<br />
<br />
        const string _ceAppMgRegistryPath = @"software\Microsoft\Windows\CurrentVersion\App Paths\CEAppMgr.exe";<br />
        const string _iniFileName = "PDARAM.ini";<br />
        const string _filePrefix = @"file:\";<br />
        string CeAppMgrExe<br />
        {<br />
            get<br />
            {<br />
                RegistryKey subKey = null;<br />
                string exePath = null;<br />
                try<br />
                {<br />
                    subKey = Registry.LocalMachine.OpenSubKey(_ceAppMgRegistryPath);<br />
                    exePath = (string) subKey.GetValue("");<br />
                }<br />
                finally<br />
                {<br />
                    if (subKey != null)<br />
                        subKey.Close();<br />
                }<br />
                return exePath;<br />
<br />
            }<br />
        }<br />
        string IniFilePath<br />
        {<br />
            get<br />
            {<br />
                <br />
                string installFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase);<br />
                string iniFilePath = Path.Combine(installFolder, _iniFileName);<br />
                if (iniFilePath.StartsWith(_filePrefix))<br />
                {<br />
<br />
                    int index = _filePrefix.Length;<br />
                    iniFilePath = iniFilePath.Substring(index);<br />
<br />
                }<br />
                return iniFilePath;<br />
<br />
            }<br />
        }<br />
    }<br />
}<br />


Can anyonehelp me? I am buliding the Desktop installer, and it starts the install proccess, but tells me there is an error in my setup file?


<b>This is my INI file</b>
[CEAppManager]<br />
Version             = 1.0<br />
Componet            = DeviceApplication1<br />
<br />
[DeviceApplication1]<br />
Description         =  PDA RAM Data Collection Application<br />
CabFiles            = SmartDeviceCab1.CAB<br />


Computer Programmer Web/Mobile .NET

QuestionUrgent : Save/Cancel popup Pin
rockz...16-May-08 2:25
rockz...16-May-08 2:25 
AnswerRe: Urgent : Save/Cancel popup Pin
Christian Graus16-May-08 2:27
protectorChristian Graus16-May-08 2:27 
GeneralRe: Urgent : Save/Cancel popup Pin
Christian Wikander16-May-08 2:31
Christian Wikander16-May-08 2:31 
Questionthread safety in ManualResetEvent Pin
George_George16-May-08 2:13
George_George16-May-08 2:13 
AnswerRe: thread safety in ManualResetEvent Pin
N a v a n e e t h16-May-08 2:47
N a v a n e e t h16-May-08 2:47 
GeneralRe: thread safety in ManualResetEvent Pin
George_George16-May-08 3:02
George_George16-May-08 3:02 
AnswerRe: thread safety in ManualResetEvent Pin
carbon_golem16-May-08 3:56
carbon_golem16-May-08 3:56 
GeneralRe: thread safety in ManualResetEvent Pin
George_George16-May-08 4:43
George_George16-May-08 4:43 
GeneralRe: thread safety in ManualResetEvent Pin
led mike16-May-08 4:52
led mike16-May-08 4:52 
GeneralRe: thread safety in ManualResetEvent Pin
George_George16-May-08 5:02
George_George16-May-08 5:02 
Questionabstract classes Pin
Pankaj Garg16-May-08 2:10
Pankaj Garg16-May-08 2:10 
AnswerRe: abstract classes Pin
Christian Graus16-May-08 2:11
protectorChristian Graus16-May-08 2:11 
QuestionRe: abstract classes Pin
Pankaj Garg16-May-08 2:23
Pankaj Garg16-May-08 2:23 
AnswerRe: abstract classes Pin
Christian Graus16-May-08 2:28
protectorChristian Graus16-May-08 2:28 
AnswerRe: abstract classes Pin
Christian Wikander16-May-08 2:19
Christian Wikander16-May-08 2:19 
AnswerRe: abstract classes Pin
J4amieC16-May-08 2:29
J4amieC16-May-08 2:29 
AnswerRe: abstract classes Pin
Jörgen Sigvardsson16-May-08 2:37
Jörgen Sigvardsson16-May-08 2:37 

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.