Click here to Skip to main content
15,892,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: TCHAR vs built in char Pin
den2k882-Apr-20 21:15
professionalden2k882-Apr-20 21:15 
AnswerRe: TCHAR vs built in char Pin
leon de boer2-Apr-20 4:50
leon de boer2-Apr-20 4:50 
GeneralRe: TCHAR vs built in char Pin
Calin Negru2-Apr-20 5:54
Calin Negru2-Apr-20 5:54 
QuestionThanks for a new feature Pin
Anthony Appleyard31-Mar-20 4:14
Anthony Appleyard31-Mar-20 4:14 
AnswerRe: Thanks for a new feature Pin
Richard MacCutchan31-Mar-20 4:33
mveRichard MacCutchan31-Mar-20 4:33 
GeneralRe: Thanks for a new feature Pin
ZurdoDev1-Apr-20 3:59
professionalZurdoDev1-Apr-20 3:59 
AnswerRe: Thanks for a new feature Pin
ZurdoDev1-Apr-20 3:59
professionalZurdoDev1-Apr-20 3:59 
QuestionGetting 2203 error while doing silent installation of MSI Pin
Vijay53330-Mar-20 3:34
Vijay53330-Mar-20 3:34 
Hi i am using following code for silent installation of MSI am getting 2203 error.

This is the code i am using.

Not working if i pass domain Administrator username and password, it is giving error like "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2203".
Can anyone tell me how to resolve this issue.

Note: It is working fine if i pass the local/Built-in administrator username and password.

UAC is enabled in the PC.

strTempFolderToDownload = "msiexec /a "+ MSILocaltion + " ALLUSERS=0" + " TARGETDIR=" + '"' +Installlocation+ '"' + " /qb"


bLogonRet = LogonUser(strUserName, strDomainName, strPassWord, LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT , &hToken);
if(bLogonRet && hToken!=NULL)
{
BOOL benvBlock = CreateEnvironmentBlock(&lpvEnv, hToken, TRUE);
if(benvBlock)
{
dwSize = sizeof(szUserProfile)/sizeof(WCHAR);
BOOL bUsrProDir = GetUserProfileDirectory(hToken, szUserProfile, &dwSize);
if(bUsrProDir)
{
bCreateRet = CreateProcessWithLogonW(strUserName, strDomainName, strPassWord, LOGON_WITH_PROFILE, NULL, CT2W(strTempFolderToDownload),CREATE_UNICODE_ENVIRONMENT, lpvEnv, szUserProfile, &si, &pi );
}
}
}

As well as i tried only with following code also no luck.
CreateProcessWithLogonW(strUserName, strDomainName, strPassWord, LOGON_WITH_PROFILE, NULL, CT2W(strTempFolderToDownload),CREATE_UNICODE_ENVIRONMENT, NULL, NULL, &si, &pi );

CreateProcessWithLogonW(strUserName, strDomainName, strPassWord, NULL, NULL, CT2W(strTempFolderToDownload),NULL, NULL, NULL, &si, &pi );
AnswerRe: Getting 2203 error while doing silent installation of MSI Pin
Richard MacCutchan30-Mar-20 3:36
mveRichard MacCutchan30-Mar-20 3:36 
AnswerRe: Getting 2203 error while doing silent installation of MSI Pin
Dave Kreskowiak30-Mar-20 3:51
mveDave Kreskowiak30-Mar-20 3:51 
GeneralRe: Getting 2203 error while doing silent installation of MSI Pin
Vijay53331-Mar-20 0:33
Vijay53331-Mar-20 0:33 
GeneralRe: Getting 2203 error while doing silent installation of MSI Pin
Dave Kreskowiak31-Mar-20 4:55
mveDave Kreskowiak31-Mar-20 4:55 
QuestionFinding a directory Pin
Anthony Appleyard29-Mar-20 18:32
Anthony Appleyard29-Mar-20 18:32 
AnswerRe: Finding a directory Pin
leon de boer29-Mar-20 20:26
leon de boer29-Mar-20 20:26 
QuestionPassing an array as argument to a function Pin
Calin Negru28-Mar-20 22:15
Calin Negru28-Mar-20 22:15 
AnswerRe: Passing an array as argument to a function Pin
Richard MacCutchan28-Mar-20 22:34
mveRichard MacCutchan28-Mar-20 22:34 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru28-Mar-20 22:59
Calin Negru28-Mar-20 22:59 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan28-Mar-20 23:23
mveRichard MacCutchan28-Mar-20 23:23 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru28-Mar-20 23:44
Calin Negru28-Mar-20 23:44 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan28-Mar-20 23:55
mveRichard MacCutchan28-Mar-20 23:55 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru29-Mar-20 0:48
Calin Negru29-Mar-20 0:48 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan29-Mar-20 0:50
mveRichard MacCutchan29-Mar-20 0:50 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru29-Mar-20 1:14
Calin Negru29-Mar-20 1:14 
GeneralRe: Passing an array as argument to a function Pin
k505429-Mar-20 4:03
mvek505429-Mar-20 4:03 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan29-Mar-20 4:18
mveRichard MacCutchan29-Mar-20 4:18 

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.