<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Update-Funktion einer .exe: Ohne helper auskommen?]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich würd gern eine update-Funktion schreiben, welche ggf. aus dem Internet eine neue .exe herunterlädt. Dabei würde ich aber gerne auf eine helper.exe verzichten, welche nach dem Runterladen gestartet wird, die alte .exe löscht und die neu runtergeladene .exe (mit anderem Namen) umbenennt.</p>
<p>Geht das irgendwie?<br />
Danke im Voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/243320/update-funktion-einer-exe-ohne-helper-auskommen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Apr 2026 06:20:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/243320.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 Jun 2009 14:14:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 14:14:51 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich würd gern eine update-Funktion schreiben, welche ggf. aus dem Internet eine neue .exe herunterlädt. Dabei würde ich aber gerne auf eine helper.exe verzichten, welche nach dem Runterladen gestartet wird, die alte .exe löscht und die neu runtergeladene .exe (mit anderem Namen) umbenennt.</p>
<p>Geht das irgendwie?<br />
Danke im Voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727016</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727016</guid><dc:creator><![CDATA[Worker]]></dc:creator><pubDate>Mon, 15 Jun 2009 14:14:51 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 14:28:11 GMT]]></title><description><![CDATA[<p>nö geht nicht denn windoof lockt das image des prozesses</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727020</guid><dc:creator><![CDATA[nein0r]]></dc:creator><pubDate>Mon, 15 Jun 2009 14:28:11 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 14:41:18 GMT]]></title><description><![CDATA[<p>Du kannst mit einem RunOnce-Mechanismus die alte exe durch die neue ersetzen lassen.<br />
Allerdings ist dafür ein Reboot nötig, also nicht gerade anwenderfreundlich... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>Alternative (hab ich so noch nie gemacht, daher keine Gewähr): Erzeuge einen neuen Prozeß per CreateProcess(), übergebe diesem Prozeß die alten Prozeß-IDs, beende Deine Applikation.<br />
Und lasse durch den neu erzeugten Prozeß die exe-Datei löschen/umbenennen, nachdem dieser festgestellt hat, daß der alte Prozeß mit der Prozeß-ID nicht mehr existiert.</p>
<p>Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727027</guid><dc:creator><![CDATA[Mmacher]]></dc:creator><pubDate>Mon, 15 Jun 2009 14:41:18 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 14:49:18 GMT]]></title><description><![CDATA[<p>Für das Erzeugen des neuen Prozesses brauch er ein Image was auf ne helper.exe hinausläuft.</p>
<p>es geht auch anders aber das ist ne reine frickelei und das ist nicht zu empfehlen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727033</guid><dc:creator><![CDATA[nein0r]]></dc:creator><pubDate>Mon, 15 Jun 2009 14:49:18 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 14:49:25 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/16457">@Mmacher</a><br />
Deinen Vorschlag kapier ich nicht. Was für einen Prozess erstellen? Mit welchem Modul? Welche ID<strong>s</strong>? Oder meinst du eh sowas wie eine helper.exe..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727034</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727034</guid><dc:creator><![CDATA[Worker]]></dc:creator><pubDate>Mon, 15 Jun 2009 14:49:25 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 14:50:12 GMT]]></title><description><![CDATA[<p>nein0r schrieb:</p>
<blockquote>
<p>es geht auch anders aber das ist ne reine frickelei und das ist nicht zu empfehlen.</p>
</blockquote>
<p>Wär trotzdem interessant.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727036</guid><dc:creator><![CDATA[Worker]]></dc:creator><pubDate>Mon, 15 Jun 2009 14:50:12 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 14:56:20 GMT]]></title><description><![CDATA[<p>man kann nen prozess auch mit einem image ausm speicher erzeugen lassen bzw nen prozess erzeugen mit irgendeinem bekannten geeigneten image, den prozess suspended erstellen und dann die bestehende image datei rausmappen und ne andere ausm speicher reinmappen. is ne reine frickelei mit undokumentierten datenstrukturen und funktionen, die m$ jederzeit ändern kann mit ner neuen windows version also lediglich aus akademischen gründen interessant. einsetzen würd ich son frickel code in meiner applikation nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727044</guid><dc:creator><![CDATA[nein0r]]></dc:creator><pubDate>Mon, 15 Jun 2009 14:56:20 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 15:24:11 GMT]]></title><description><![CDATA[<p>Achso, naja ok dann...<br />
Da fällt mir ein, in einer meiner Anwendungen verwende ich NtQuerySystemInformation, NtDuplicateObject und NtQueryObject, um an alle File-Handles eines Prozesses ranzukommen. Diese API's könnten sich angeblich auch ändern.<br />
Gibt es da keine Alternative?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727057</guid><dc:creator><![CDATA[Worker]]></dc:creator><pubDate>Mon, 15 Jun 2009 15:24:11 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 15:45:23 GMT]]></title><description><![CDATA[<p>nö alternativ halt nen treiber, der diese informationen liefert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727066</guid><dc:creator><![CDATA[nein0r]]></dc:creator><pubDate>Mon, 15 Jun 2009 15:45:23 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 15:55:35 GMT]]></title><description><![CDATA[<p>geht das nicht auch mit ner helper batch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727070</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727070</guid><dc:creator><![CDATA[b*tch]]></dc:creator><pubDate>Mon, 15 Jun 2009 15:55:35 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 16:39:42 GMT]]></title><description><![CDATA[<p>Man, das ist ja selten dämlich.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/6989">@b</a>*tch: Denk schon, aber is egal, werde trotzdem ein Programm schreiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727091</guid><dc:creator><![CDATA[Worker]]></dc:creator><pubDate>Mon, 15 Jun 2009 16:39:42 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 17:18:32 GMT]]></title><description><![CDATA[<p>Ich habe es bei meiner Updatefunction so gemacht.<br />
Laufende exe hat sich selbst umbenannt, neue runterladen und starten lassen, alte exe hat sich dann selbst beendet.<br />
Beim starten der neuen exe löscht diese die alte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727118</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727118</guid><dc:creator><![CDATA[Sillo]]></dc:creator><pubDate>Mon, 15 Jun 2009 17:18:32 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 17:36:03 GMT]]></title><description><![CDATA[<p>Sillo schrieb:</p>
<blockquote>
<p>Laufende exe hat sich selbst umbenannt</p>
</blockquote>
<p>Wie denn das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727130</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727130</guid><dc:creator><![CDATA[Worker]]></dc:creator><pubDate>Mon, 15 Jun 2009 17:36:03 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 18:10:16 GMT]]></title><description><![CDATA[<p>Eine EXE kannst Du i.d.R. immer umbenennen... nur eben nicht löschen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727152</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 15 Jun 2009 18:10:16 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 18:33:47 GMT]]></title><description><![CDATA[<p>YAY!<br />
Dann ist das ja die Lösung!<br />
THX!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727168</guid><dc:creator><![CDATA[Worker]]></dc:creator><pubDate>Mon, 15 Jun 2009 18:33:47 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Mon, 15 Jun 2009 23:37:34 GMT]]></title><description><![CDATA[<p>Musst nur aufpassen, dass du bei Vista nicht in den virtual Store reinläufst und deine runtegeladene <em>.exe irgenwo in &quot;C:\Users\**\AppData\Local\VirtualStore\Program Files\blablabla\</em>.<em>&quot; landet anstelle in &quot;C:\Programme\blablabla\</em>.*&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727287</guid><dc:creator><![CDATA[.......]]></dc:creator><pubDate>Mon, 15 Jun 2009 23:37:34 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Tue, 16 Jun 2009 00:23:27 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Eine EXE kannst Du i.d.R. immer umbenennen... nur eben nicht löschen...</p>
</blockquote>
<p>Genau.<br />
Weisst du zufällich auch, ob man eine Datei mit CreateFile irgendwie so aufmachen kann, dass man die dann auch noch umbenennen kann? <em>Das</em> hab ich nämlich bisher nicht hinbekommen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727299</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Tue, 16 Jun 2009 00:23:27 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Tue, 16 Jun 2009 01:59:14 GMT]]></title><description><![CDATA[<p>geht nich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727317</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727317</guid><dc:creator><![CDATA[nein0r]]></dc:creator><pubDate>Tue, 16 Jun 2009 01:59:14 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Tue, 16 Jun 2009 08:11:38 GMT]]></title><description><![CDATA[<p>FILE_SHARE_DELETE<br />
<a href="http://msdn.microsoft.com/en-us/library/aa363858.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa363858.aspx</a></p>
<blockquote>
<p>Note: Delete access allows both delete and rename operations.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1727394</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727394</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 16 Jun 2009 08:11:38 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Tue, 16 Jun 2009 19:38:32 GMT]]></title><description><![CDATA[<p>Meine Lösung, die ich mal mit AHK realisiert habe:</p>
<p>Ich habe eine *.ini auf einem Server gehabt..Inhalt:</p>
<pre><code>NewVersion='Hier stand die Neue Versions-Nr'
NewFileName='Hier stand der neue Dateiname..eifnach der alte, mit der neuen Versions-Nr dran'
NewFileDir='Hier stand der Pfad drin, in den die neue Datei reinkam'
</code></pre>
<p>Zum Programm: Jede 30 Sekunden wurde die .ini runtergeladen, und die darin stehende NewVersion mit der im Programm stehenden Variable Version auf ungleichheit überprüft...Wenn sie ungleich war, wurde ein Label geupdatet: &quot;Neue Version verfügbar!&quot;...Beim Klick auf den UpdateButton wurde der Rest aus der .ini gelesen, die neue Datei (.exe) wurde heruntergeladen, natürlich in das in der .ini stehende Verzeichnis, dann wurde die neue Datei gestartet. Die alte Instance der exe wurde von sich selbst beendet, und die neue Datei hat dann die alte gelöscht, sofern deren Dateiname nicht verändert wurde.</p>
<p>Hoffe es hilft <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /><br />
DaMapfi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727869</guid><dc:creator><![CDATA[DaMapfi]]></dc:creator><pubDate>Tue, 16 Jun 2009 19:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Tue, 16 Jun 2009 21:42:24 GMT]]></title><description><![CDATA[<p>Jo danke, so wollte ich es eh machen. Außer, dass sich die laufende .exe vor dem Update, wenn denn eins verfügbar ist, umbenennt (mit nem _ hinten dran zB.), damit die neue .exe ins gleiche Verzeichnis kann. Dasselbe auch für andere Dateien.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727925</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727925</guid><dc:creator><![CDATA[Worker]]></dc:creator><pubDate>Tue, 16 Jun 2009 21:42:24 GMT</pubDate></item><item><title><![CDATA[Reply to Update-Funktion einer .exe: Ohne helper auskommen? on Tue, 16 Jun 2009 22:38:43 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>FILE_SHARE_DELETE<br />
<a href="http://msdn.microsoft.com/en-us/library/aa363858.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa363858.aspx</a></p>
<blockquote>
<p>Note: Delete access allows both delete and rename operations.</p>
</blockquote>
</blockquote>
<p>Cool, danke!<br />
Kann man dann noch zusätzlich verhindern dass die Datei gelöscht werden darf? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1727940</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1727940</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Tue, 16 Jun 2009 22:38:43 GMT</pubDate></item></channel></rss>