Click here to Skip to main content
15,897,718 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: demo exe in web site Pin
Aqueel25-Apr-06 3:50
Aqueel25-Apr-06 3:50 
GeneralRe: demo exe in web site Pin
David Crow25-Apr-06 4:08
David Crow25-Apr-06 4:08 
GeneralRe: demo exe in web site Pin
Rilhas25-Apr-06 7:14
Rilhas25-Apr-06 7:14 
GeneralRe: demo exe in web site Pin
David Crow25-Apr-06 9:44
David Crow25-Apr-06 9:44 
GeneralRe: demo exe in web site Pin
Aqueel25-Apr-06 17:39
Aqueel25-Apr-06 17:39 
GeneralRe: demo exe in web site Pin
David Crow26-Apr-06 2:46
David Crow26-Apr-06 2:46 
GeneralRe: demo exe in web site Pin
akram mirzaei28-Apr-06 20:18
akram mirzaei28-Apr-06 20:18 
GeneralRe: demo exe in web site Pin
Rilhas28-Apr-06 23:13
Rilhas28-Apr-06 23:13 
My answer is applicable even if your "demo.exe" is an installation application. Installers like "msi" need extra care, but an "exe" installer is, for all intents and purposes, a directly executable application. So, all I said for executables applies.

However, some new information can be added, knowing that it is an installer. Typical problems with installers (especially custom made installers) is that they often forget people can have the operating system installed in different directories.

For example, the programs are installed in a "Program Files" directory when the Windows version is English, but are installed in a "Programas" directory when the Windows version is Portuguese. Other complications include additional drives: for example, I may have the operating system installed in drive C: and my programs installed in drive E:.

Depending on the installer you select for your application, you may want to use the following environment variables to make your installer as compatible as possible:

%HOMEPATH% (C:\Documents and Settings\Administrator)
%ALLUSERSPROFILE% (C:\Documents and Settings\All Users)
%SystemRoot% (C:\WINNT)

There are many more. Type "set" at a console prompt to see your defined environment variables.

To do that programatically, you can use standard ANSI code like:

#include <stdlib.h>
char* aup=getenv("ALLUSERSPROFILE")

Again, I sugest you provide more information on the details of your application.

Rogério
GeneralRe: demo exe in web site Pin
Aqueel25-Apr-06 17:16
Aqueel25-Apr-06 17:16 
AnswerRe: demo exe in web site Pin
Cedric Moonen25-Apr-06 4:46
Cedric Moonen25-Apr-06 4:46 
Questiondemo exe in web site Pin
akram mirzaei25-Apr-06 3:29
akram mirzaei25-Apr-06 3:29 
AnswerRe: demo exe in web site Pin
Rilhas25-Apr-06 7:22
Rilhas25-Apr-06 7:22 
AnswerRe: demo exe in web site Pin
Aqueel25-Apr-06 17:43
Aqueel25-Apr-06 17:43 
QuestionPerformance issues due to use of CMemFile for serialization Pin
senthaaa25-Apr-06 3:18
senthaaa25-Apr-06 3:18 
AnswerRe: Performance issues due to use of CMemFile for serialization Pin
YaronNir25-Apr-06 4:05
YaronNir25-Apr-06 4:05 
GeneralRe: Performance issues due to use of CMemFile for serialization Pin
senthaaa10-May-06 20:33
senthaaa10-May-06 20:33 
QuestionCapturing Browser data in Windows Application Pin
nw.knowledge25-Apr-06 3:13
nw.knowledge25-Apr-06 3:13 
AnswerRe: Capturing Browser data in Windows Application Pin
Naveen25-Apr-06 3:21
Naveen25-Apr-06 3:21 
QuestionCopyFile slow over network Pin
jayart25-Apr-06 1:55
jayart25-Apr-06 1:55 
AnswerRe: CopyFile slow over network Pin
YaronNir25-Apr-06 2:04
YaronNir25-Apr-06 2:04 
GeneralRe: CopyFile slow over network Pin
jayart25-Apr-06 2:30
jayart25-Apr-06 2:30 
QuestionAdding .gif as resource. Pin
pc_dev25-Apr-06 1:42
pc_dev25-Apr-06 1:42 
AnswerRe: Adding .gif as resource. Pin
YaronNir25-Apr-06 2:01
YaronNir25-Apr-06 2:01 
GeneralRe: Adding .gif as resource. Pin
pc_dev25-Apr-06 2:24
pc_dev25-Apr-06 2:24 
GeneralRe: Adding .gif as resource. Pin
YaronNir25-Apr-06 2:32
YaronNir25-Apr-06 2:32 

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.