Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

"Not a valid calendar for the given culter" whilst launching program with Wine

So I have a little problem. I am trying to Launch a windows program (Bime.exe) which uses ".NET 4.8" and "EITcommon6" as a base. It works fine when I launch it on any windows ...
Khode Alishon's user avatar
2 votes
1 answer
191 views

How can I set the application file description in C# (.NET 8)?

I'm building an application in .NET 8 and I can't find the option to set the exe file description, the one displayed in Task Manager as the application name. I was able to do it in .NET Framework, but ...
AleG's user avatar
  • 47
1 vote
1 answer
85 views

How to display splash screen during initial extraction phase of single-file exe

I have a WinForms application that is bundled as a single file exe. During the first launch on a new system, it always takes about 20 seconds for the exe to finish extracting all necessary files to a ...
Valyrion's user avatar
  • 2,574
0 votes
0 answers
23 views

How to custom action when user cancel Mai installation in between

I have installer made up using wix toolset and .Net and using custom bootstrapper or custom ui. In the bootstrapper project I have chained multiple msi say a, b, c and in all these msi there are some ...
naveen's user avatar
  • 1
2 votes
2 answers
2k views

exe requires the .NET desktop runtime

I have developed a exe file by using windows forms app and setup project in microsoft visual studio installer. While executing that exe it will show some GUI and ask for some user input (eg. next, ...
Prashanth CP's user avatar
0 votes
0 answers
242 views

C# application can't run without .config file

Until now I could use an exe file alone to run some home made exe. For resources, I use the NuGet costura.fody package to include them in the exe. So I have a single file: myprogram.exe and it works ...
Iliana's user avatar
  • 11
1 vote
1 answer
102 views

Exe not being updated after rebuilding the Windows Service

I have Windows service installed on my local. The service is written using .NET, and it is installed using InstallUtil. I made some changes in the service , stopped the service and then rebuild the ...
Unknown's user avatar
  • 155
0 votes
0 answers
1k views

How to build MAUI.NET solution with few projects into standalone exe file

I have solution - MAUI.NET application that has references to other projects in this solution. I have created them all for .NET 6 and all of them were upgraded to .NET 7. I need to ship this ...
jaydopartu's user avatar
-1 votes
1 answer
496 views

InnoSetup: why is ndp48.exe not being executed

Im trying to install ndp48-x86-x64-allos-enu.exe on computers that don't have it. I have both those procedures : the check function: function NETFrameworkIsNotInstalled: Boolean; var ver: Cardinal; ...
Hugo_vdms's user avatar
0 votes
0 answers
219 views

My desktop application tray icon showing multiple

Here, In my application, I disappear the form, if my process stop, i restart the process, that time new tray icon will appear, previous icon doesn't disappeart. Please help to hide tray icons those ...
Sivasankaramoorthy B's user avatar
0 votes
1 answer
446 views

Is it possible to set the parent form of an external application before starting the process?

I have a winforms application (.net 5.0) that comprises two forms - one for the operator (to setup different options/enter data, admin duties) and another for the user to interact with (play games, ...
rlh's user avatar
  • 23
0 votes
0 answers
124 views

Needed to rename exe file to make it functional

We have in-house built windows application. From last few months we are facing a quite strange issue. Lot of our end users complaint that application is not opening. As a quick turn around we found ...
abdullah's user avatar
1 vote
1 answer
175 views

Installutil.exe ignored .exe.config file, how can I substitute it?

I am currently trying to create a service from a .exe file that is referencing several libraries, which are all neatly sorted into subfolders: Service.exe folder: +---config +---executable +---...
CodingWolf's user avatar
0 votes
0 answers
57 views

How to embed a new .resx (resources) file to an application

I'm building an application that has two forms, one form where you put information encrypts that type of information and then decrypts it into a new resources file used in the second form. My goal is ...
Don's user avatar
  • 11
0 votes
1 answer
449 views

Process.Start not executing .exe after publish on IIS 10

I have one tool(Consider name "abc") which trigger some stream.str to be executed. I have prepared one ASP.NET Core API application to run that tool abc.exe after execution this exe as a ...
user18291107's user avatar
0 votes
0 answers
456 views

.NET 6 outputs far larger executable than CSC

When I compile a executable with csc, it takes 4KB. On the other hand, with publish option in visual studio 2022 I get 9.91 MB. Both files can be run on a pc independetly. "Release" version ...
Lordoftherings's user avatar
1 vote
1 answer
200 views

SHA1 Algorithm in FileInfor properties of .Net Project EXE

The metadata of the .Net EXE shows that it has been using SHA1 for its internal purpose. The property navigation is : Metadata->Headers->FileInfo->SHA1 Steps to reproduce: Create any console ...
Vaibhav More's user avatar
-13 votes
2 answers
804 views

C# How do I append code to the end of a running .NET .EXE, preferably from inside that .EXE?

Can a running .NET .EXE append data to itself? What's stopping it? I could launch a separate process to do it just fine. But I can't figure out how to write to itself while it's running. Is there ...
8vtwo's user avatar
  • 66
1 vote
0 answers
104 views

NuGet Popup not showing when compiled to exe

I'm using the Microsoft Toolkit for Windows 10 Notifications. When I debug the App in VS2019 it works and a notification in windows is displayed. But when I build the app nothing happens after running ...
JaHo2021's user avatar
0 votes
1 answer
979 views

How do Environment.CurrentDirectory work? [closed]

static void Main(string[] args) { Console.WriteLine(Environment.CurrentDirectory); Console.ReadLine(); } The code is very simple, but accidentally it raised a question. If I press the "...
EggEgg's user avatar
  • 21
0 votes
1 answer
193 views

How to run .exe on remote windows network path from c# .net core running on Linux (docker container)

I am looking for suggestions how to implement running .exe exist on remote windows network path from c# .net core running on Linux (docker container). The .net core program runs on aws batch as ...
user1745679's user avatar
0 votes
0 answers
370 views

Powershell - Set Version and company name of executable created by Powershell

I am developing a .ps1 powershell script which creates .exe file following this guide. I have created .exe successfully. Here is a minimal example of the code. [CmdletBinding(DefaultParameterSetName='...
why it doesnt work's user avatar
3 votes
2 answers
14k views

How to run a .net app without installing .net?

I made an app in visual studio that uses C# and .net. I want people to be able to use that app without installing .net is there some way that I can include .net with the exe
wesley's user avatar
  • 69
0 votes
0 answers
352 views

Why are source code seen in exe as it is supposed to be binary?

Recently I did an experiment with one of my c# .NET compiled exe by renaming the extension to .txt. When viewed in the Notepad, I was able to see all my source code in English Language which made me ...
Ashish Sinha's user avatar
0 votes
0 answers
78 views

Why my SerialPorts.GetPortNames() gets exception error 'no data is available' when there was data?

this is my code private void updatePorts() { List<string> Pnames = ComPortNames("0403", "6015"); //"0403", "6015" ...
Natasha 's user avatar
0 votes
0 answers
75 views

Run application after installation

I have .NET Core app that using Wix toolset to build the installer. I need to run the application after installation Here is my wxs file <?xml version="1.0" encoding="UTF-8"?> <Wix ...
Eugene Sukh's user avatar
  • 2,717
0 votes
3 answers
70 views

pass parameter not having to worry about orders exe c#

Trying to pass a parameter without having to think about the order of parameters. The first line is what I want to be able to do and below is what I am able to do. What I want where both should give ...
Sibusiso Mahlangu's user avatar
0 votes
1 answer
34 views

After installing, can WindowsService read the data from the file exists in the same machine

I am working on windows service using .NET Core 3. At the time of development I am reading credentials and server url from xml file which is there in D:\ drive of the same machine. Just I want to ...
Arvind Chourasiya's user avatar
0 votes
1 answer
582 views

How to delete exe file using c#?Self delete? [duplicate]

So,I have tried to delete my own program after run it.When I open it,my code is working well,but then I need to delete it using C# and nothing happens,sometimes Microsoft Policy warm me that I can’t ...
prom tom's user avatar
0 votes
0 answers
47 views

Set program as default .exe opener

I was trying to make a simple antivirus program that checks exes as they are launched. My idea was to make my application the default exe opener, then scan the file before launching it. However I ...
Simkoo's user avatar
  • 74
0 votes
2 answers
154 views

Which is a better approach?Preventing an exception or Handling it [closed]

I want to block the user from running an exe file by double clicking it.The exe file only executes with the help of the command prompt.When the user double clicks the exe the args value will be null. ...
Debasis Mund's user avatar
0 votes
1 answer
57 views

An .exe application throws an error while creating a new module in windows10 but works fine in windows7?

I have installed the an exe (windows application) in windows 7 and works fine there but after installing the same exe in windows 10 it's throwing an error in creating a new module in that . The ...
ksrds's user avatar
  • 166
3 votes
0 answers
468 views

.NET Prevent replacing dll

My EXE will use a DLL for certain validation. I dont have the access to the DLL code, so I tried to decompile the DLL, then create another similar DLL which always return true. Replace the DLL with ...
Nerdynosaur's user avatar
  • 1,888
1 vote
0 answers
257 views

Extract 7z SFX files using C#

I have an exe file of type 7z SFX. A text file is compressed inside the exe file. How can I read the contents of text file inside exe in C#. I tried extracting using sevenzipsharp library but got an ...
chvc's user avatar
  • 95
-1 votes
1 answer
778 views

visual studio generate .net dll files

im building an app using c# (not my first. other projects i dont have this problem). this one i included nuget package json the problem that VS generates too many .dll files in my bin/debug folder (...
Hasan alattar's user avatar
0 votes
1 answer
220 views

Moving Data from .DLL to an .Exe in C#

I'm rewriting a C# DLL to send a file directly to a c# Executable residing on the same machine. Currently this DLL basically saves the File to a Location then the Executable Application picks that ...
Sorceress Stabber Thomas's user avatar
1 vote
0 answers
104 views

How does dynamic linking work with CLR executables?

This is a theoretical question that I'm asking because I know how dynamic linking works with a regular .exe. You link the object file and the .lib and it replaces function calls with jumps to the ...
Lewis Kelsey's user avatar
  • 4,657
-1 votes
1 answer
133 views

How to resolve backward compatibility issues? WPF exe file is not opening in other PC

I build WPF application on Window 10, .Netframwork 4.5. It's successfully working on my machine and when I tried to run exe file (bin/debug/app.exe) by another PC (window 8.1) it's not Working.. No ...
Mr. Xek's user avatar
  • 81
0 votes
0 answers
105 views

How can i pass a control object between a vb6 exe and .net dll?

We are planning phased migration of a vb6 project to vb.net. Hence we want to refer some objects in our vb6 EXE like textbox, msflexgrid from vb.net DLL. Someone has mention in this link that it's ...
IT researcher's user avatar
-1 votes
1 answer
76 views

Unable to view the console exe. window screen

Unable to view the console application (developed in C#) black window screen, triggered from my Asp.net core web application hosted in IIS. I can see my batch running in Task Manager, But the window ...
user2302158's user avatar
0 votes
1 answer
2k views

C# Extract/Unzip a .EXE file

Using the DOTNETZIP library, I can currently unzip/extract .ZIP files using the following code: private void Unzip(object sender, EventArgs e) { string zipPath = pub.DepoDirDaily + @"\"; ...
dhowells217's user avatar
-1 votes
1 answer
60 views

Reference to exe in a .Net 4.6.1 project

I need to make API calls to methods in an EXE provided by a software company. In the past very old .Net version, I was able to make it work by renaming the exe to dll (I guess?). This time around the ...
Aamir's user avatar
  • 821
2 votes
2 answers
3k views

Get 'excelcnv.exe' location

I am working with 'excelcnv.exe' to convert '.xls' files to '.xlsx' version. I can do this by referring 'excelcnv.exe' location directly in machine where I am working now. In my current machine, ...
Upendhar Singirikonda's user avatar
5 votes
1 answer
2k views

ClickOnce exe files needs unblock to work

I have a problem after deploying ClickOnce applications to client hosts. After the deployment successfully completes and a shortcut is added to the desktop, running the application will cause ...
Hasan Baidoun's user avatar
0 votes
0 answers
267 views

C# - Merge Unmanaged Code DLL's into .exe without storing to Disk

Is it possible to merge an unmanaged .dll into a .exe without having to temporarily storing it as a file? I have System.Data.SQLite.Core installed and it has a managed .dll System.Data.SQLite.dll and ...
Ma Dude's user avatar
  • 547
0 votes
2 answers
2k views

How to change variables of a .exe file?

I want my program in Visual C# to allow the user to generate a portable .exe file to be run on another user's computer, with the portabe .exe receiving the values the first user inserted. I don`t want ...
Kreator's user avatar
  • 63
0 votes
1 answer
2k views

Is it possible to decomplie any exe to .net source code (Visual studio) [duplicate]

I have an exe file which is written in .net language . I have no source code for same but I want to change some functionality in this so convert it to visual studio source code. is there any way to do ...
amethianil's user avatar
0 votes
1 answer
317 views

How to make portable exe which extracts one program file

I've developed a WPF Application which needs some supporting DLLs in it to run. So, in release folder I've got all the stuff that I need to run my application. Now, I want to make an exe which ...
The Lost JavaScripter's user avatar
0 votes
1 answer
164 views

Adapt the target of a shortcut

I have created a software, the exe file and the dependencies are in the folder named Debug. To execute the program the user have to click on the exe file named "start". The exe file is in the Debug ...
Maxime Veleda's user avatar
-7 votes
1 answer
2k views

The exe in debug folder dosen't work when I move it [closed]

I need to send my c# app to my classmate but when I execute the .exe file in the Debug folder of the project the app open normally. The problem occur when I copy the "Debug" folder to my desktop, ...
ParkPark's user avatar