3
Answers

Looks good Mahesh

Administrator

Administrator

22y
309
1
It's a bummer there such problems porting this over to c-sharpcorner. But, now that it's here, it looks great! Are you planning on making changes to the forum yourself or just waiting on ASPnet forums to add features and then port them over? If the former, can I request avitars?? As silly as they are, I think they add character to the site... thanx again! -dotnetace-
Answers (3)
0
san

san

NA 19 0 16y
Here is the Code,

This goes as the primary output to the SetUp Project in the Install Node. This code calls Some.exe, I know this works because when I run EmptyProject.exe directly, it calls Some.exe without any problems. Only when I try to install the main application, I`m getting an exception.

These are the options i`m using InstallerClass - False [I`ve tried with True]
                                                    Argument  - [TARGETDIR] - [I`ve tried this being blank too]

Any idea of whats going wrong?

using System;
using System.Windows.Forms;
using System.Diagnostics;

namespace EmptyProject
{

    public class ClassEP
    {
        public static void Main(string[] args)
       

                ProcessStartInfo psi = new ProcessStartInfo();
                psi.FileName = "Some.exe";
                psi.WorkingDirectory = String.Join(" ",args);
                Process.Start(psi);
   
        }
    }
}
0
san

san

NA 19 0 16y
Snehal,
I doing primary output. But only the exe is being created and sent to the application folder and its not being executed.
Best,
San
0
snehal m

snehal m

NA 28 36.8k 16y
instead of adding files, u can add project output< primary output then the file get added instead of exe
Next Recommended Forum